From 889fc9fe3ab3197cbe6a2e53fcc8c0fd96bc5b12 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 4 Nov 2013 10:50:48 +0100 Subject: [PATCH] libmount: allow to use -s (sloppy) for all external helpers Signed-off-by: Karel Zak --- libmount/src/context_mount.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 */ -- 2.47.3