[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/6] trans/mtab: do not map unknown source strings to "none"
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 5/6] trans/mtab: do not map unknown source strings to "none" |
Date: |
Tue, 25 Feb 2014 00:28:41 -0500 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Tue 11 Feb 2014 17:13:11 +0100, a écrit :
> Previously, map_device_to_path mapped unknown device strings to
> "none". Return a copy of the original source string instead so that
> e.g. nfs mount point points are properly handled.
Ack
> * trans/mtab.c (map_device_to_path): Do not map unknown source strings
> to "none".
> ---
> trans/mtab.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/trans/mtab.c b/trans/mtab.c
> index 744c435..da83e6f 100644
> --- a/trans/mtab.c
> +++ b/trans/mtab.c
> @@ -564,7 +564,7 @@ map_device_to_path (const char *device, char **path)
> else if (looks_like_block_device (device))
> asprintf (path, "/dev/%s", device);
> else
> - *path = strdup ("none");
> + *path = strdup (device);
>
> if (! *path)
> return ENOMEM;
> --
> 1.8.5.2
>
--
Samuel
I develop for Linux for a living, I used to develop for DOS.
Going from DOS to Linux is like trading a glider for an F117.
(By entropy@world.std.com, Lawrence Foard)
- fix the get-children and get-source procedures, Justus Winter, 2014/02/11
- [PATCH 2/6] nfs: implement netfs_get_source, Justus Winter, 2014/02/11
- [PATCH 3/6] trans/mtab: ignore translators that do not implement file_get_source, Justus Winter, 2014/02/11
- [PATCH 4/6] tmpfs: set diskfs_disk_name to "none", Justus Winter, 2014/02/11
- [PATCH 5/6] trans/mtab: do not map unknown source strings to "none", Justus Winter, 2014/02/11
- Re: [PATCH 5/6] trans/mtab: do not map unknown source strings to "none",
Samuel Thibault <=
- [PATCH 6/6] New RPCs, fix build, Justus Winter, 2014/02/11
- [PATCH 1/6] hurd: fix the get-children and get-source procedures, Justus Winter, 2014/02/11
- [PATCH 1/3] libdiskfs: fix typo, Justus Winter, 2014/02/12