summaryrefslogtreecommitdiffstats
path: root/libmount/src/context_mount.c
diff options
context:
space:
mode:
authorKarel Zak2013-11-04 10:50:48 +0100
committerKarel Zak2013-11-04 10:50:48 +0100
commit889fc9fe3ab3197cbe6a2e53fcc8c0fd96bc5b12 (patch)
tree71c0d942974d35487a5bd8028d1f0cd120b1f21e /libmount/src/context_mount.c
parentlibblkid: fix swap-area version (diff)
downloadkernel-qcow2-util-linux-889fc9fe3ab3197cbe6a2e53fcc8c0fd96bc5b12.tar.gz
kernel-qcow2-util-linux-889fc9fe3ab3197cbe6a2e53fcc8c0fd96bc5b12.tar.xz
kernel-qcow2-util-linux-889fc9fe3ab3197cbe6a2e53fcc8c0fd96bc5b12.zip
libmount: allow to use -s (sloppy) for all external helpers
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context_mount.c')
-rw-r--r--libmount/src/context_mount.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c
index 967ec336a..ffea65354 100644
--- a/libmount/src/context_mount.c
+++ b/libmount/src/context_mount.c
@@ -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 */