diff options
author | Karel Zak <kzak@redhat.com> | 2007-10-04 15:07:30 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2007-10-04 15:07:30 +0200 |
commit | f92dc20fcb9bb9f15ac95e0e3d6ae96ecfb59619 (patch) | |
tree | f7db2d29d6abe5c56a61e77e2e5de1434ba37f20 /mount/umount.c | |
parent | a6d35e6d68b18184deae0226b99f41b958049666 (diff) | |
download | util-linux-old-f92dc20fcb9bb9f15ac95e0e3d6ae96ecfb59619.tar.gz |
mount: cleanup "none" fstype usage
* disable to call /sbin/mount.none
* rewrite fstype to "none" for MS_BIND and MS_MOVE
* add notes about "none" to fstab.5 and mount.8
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/umount.c')
-rw-r--r-- | mount/umount.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mount/umount.c b/mount/umount.c index 32216198..6af43546 100644 --- a/mount/umount.c +++ b/mount/umount.c @@ -94,7 +94,10 @@ check_special_umountprog(const char *spec, const char *node, if (!external_allowed) return 0; - if (type && strlen(type) < 100) { + if (type == NULL || strcmp(type, "none") == 0) + return 0; + + if (strlen(type) < 100) { sprintf(umountprog, "/sbin/umount.%s", type); if (stat(umountprog, &statbuf) == 0) { res = fork(); |