From: Karel Zak Date: Mon, 4 Nov 2013 09:50:48 +0000 (+0100) Subject: libmount: allow to use -s (sloppy) for all external helpers X-Git-Tag: v2.25-rc1~781 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=889fc9fe3ab3197cbe6a2e53fcc8c0fd96bc5b12;p=thirdparty%2Futil-linux.git libmount: allow to use -s (sloppy) for all external helpers Signed-off-by: Karel Zak --- diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c index 967ec336ad..ffea65354e 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 */