]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: allow to use -s (sloppy) for all external helpers
authorKarel Zak <kzak@redhat.com>
Mon, 4 Nov 2013 09:50:48 +0000 (10:50 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 4 Nov 2013 09:50:48 +0000 (10:50 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context_mount.c

index 967ec336ada3709f45e31980bfd85611d1ada768..ffea65354ec838e58d684a37c3e338fa852b81d1 100644 (file)
@@ -518,12 +518,7 @@ static int exec_helper(struct libmnt_context *cxt)
                args[i++] = mnt_fs_get_srcpath(cxt->fs);/* 2 */
                args[i++] = mnt_fs_get_target(cxt->fs); /* 3 */
 
-               /*
-                * TODO: remove the exception for "nfs", -s is documented
-                *       for years and should be usable everywhere.
-                */
-               if (mnt_context_is_sloppy(cxt) &&
-                   type && startswith(type, "nfs"))
+               if (mnt_context_is_sloppy(cxt))
                        args[i++] = "-s";               /* 4 */
                if (mnt_context_is_fake(cxt))
                        args[i++] = "-f";               /* 5 */