diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-02-11 13:30:07 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-02-25 11:18:59 +0100 |
commit | f2fd58347765c32fddd45b9dbd87097ad73b2001 (patch) | |
tree | 370b03560fc5936ee211bbbd4ac84d15702c5dc3 | |
parent | 90af50dd30c2ea0abec10b36d5b3fbf29fec2b16 (diff) |
trans/mtab: do not map unknown source strings to "none"
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.
* trans/mtab.c (map_device_to_path): Do not map unknown source strings
to "none".
-rw-r--r-- | trans/mtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trans/mtab.c b/trans/mtab.c index 744c435e..da83e6fc 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; |