summaryrefslogtreecommitdiff
path: root/sutils
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-09-08 22:49:50 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-09-08 22:49:50 +0200
commit90b656d7e9bd288681cde6c9482d4c0ca575a431 (patch)
treebefdc0efa07382a5f6bf1db58faec0100e0e2fb5 /sutils
parent2ec3b41b65f1b7ccbe219544fd922db8fe4a0b2f (diff)
Also do not realpath "proc" pseudo-device
* sutils/fstab.c (fstab_find_device): Do not realpath "proc" pseudo-device.
Diffstat (limited to 'sutils')
-rw-r--r--sutils/fstab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sutils/fstab.c b/sutils/fstab.c
index 24a1a0df..2e125d8d 100644
--- a/sutils/fstab.c
+++ b/sutils/fstab.c
@@ -490,7 +490,7 @@ fs_remount (struct fs *fs)
inline struct fs *
fstab_find_device (const struct fstab *fstab, const char *name)
{
- if (strcmp (name, "none") == 0)
+ if (strcmp (name, "none") == 0 || strcmp (name, "proc") == 0)
return NULL;
char *real_name = realpath (name, NULL);