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". --- 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