[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 28/53: trans/mtab: do not map unknown source strings to "none"
From: |
Samuel Thibault |
Subject: |
[hurd] 28/53: trans/mtab: do not map unknown source strings to "none" |
Date: |
Thu, 20 Mar 2014 02:23:51 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit f2fd58347765c32fddd45b9dbd87097ad73b2001
Author: Justus Winter <address@hidden>
Date: Tue Feb 11 13:30:07 2014 +0100
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".
---
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;
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (a3ffccc -> c6f5e3e), Samuel Thibault, 2014/03/19
- [hurd] 28/53: trans/mtab: do not map unknown source strings to "none",
Samuel Thibault <=
- [hurd] 34/53: hurd: add IIOCTL_IMPORTS, Samuel Thibault, 2014/03/19
- [hurd] 48/53: Fix crash on opening /dev/kbd or mouse without any console being active, Samuel Thibault, 2014/03/19
- [hurd] 44/53: mach-defpager: fix warning about uninitialized variable, Samuel Thibault, 2014/03/19
- [hurd] 38/53: trans/ifsock: fix receiver lookup, Samuel Thibault, 2014/03/19
- [hurd] 40/53: mach-defpager: remove comments around form feeds, Samuel Thibault, 2014/03/19
- [hurd] 45/53: mach-defpager: fix warnings about uninitialized variables, Samuel Thibault, 2014/03/19
- [hurd] 41/53: mach-defpager: fix warnings about unused variables, Samuel Thibault, 2014/03/19
- [hurd] 32/53: pfinet: improve the mig mutator functions, Samuel Thibault, 2014/03/19
- [hurd] 47/53: mach-defpager: silently ignore requests to page to active partition, Samuel Thibault, 2014/03/19
- [hurd] 46/53: mach-defpager: fix type of size arguments, Samuel Thibault, 2014/03/19