]> err.no Git - util-linux/commitdiff
mount: use "none" fstype for MS_PROPAGATION mounts
authorKarel Zak <kzak@redhat.com>
Tue, 9 Jun 2009 22:00:09 +0000 (00:00 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 9 Jun 2009 22:00:09 +0000 (00:00 +0200)
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Karel Zak <kzak@redhat.com>
mount/mount.c

index cc5b88ae53296c9d7f217f75799e7b9733ec2ee7..e002ebbbf3a7df8f426f32560a50f2a50bbd270e 100644 (file)
@@ -895,7 +895,7 @@ guess_fstype_and_mount(const char *spec, const char *node, const char **types,
    if (*types && strcasecmp (*types, "auto") == 0)
       *types = NULL;
 
-   if (flags & (MS_BIND | MS_MOVE))
+   if (flags & (MS_BIND | MS_MOVE | MS_PROPAGATION))
       *types = "none";
 
    if (!*types && !(flags & MS_REMOUNT)) {