X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fmount.c;h=612d15077b8c49525ee0a82a3191f128a3c0dfe3;hb=76c37ab6d205c95e8f43ffbc19553b936330195a;hp=9f7c4d20b3c2959cea4bf0c7c25934bb62221c58;hpb=17a1c597c5f9be1c25431a764155cd50c0d074b7;p=elogind.git diff --git a/src/core/mount.c b/src/core/mount.c index 9f7c4d20b..612d15077 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -920,7 +920,7 @@ static void mount_enter_mounting(Mount *m) { _cleanup_free_ char *opts = NULL; r = fstab_filter_options(m->parameters_fragment.options, - "nofail\0" "fail\0" "noauto\0" "auto\0", NULL, NULL, &opts); + "nofail\0" "noauto\0" "auto\0", NULL, NULL, &opts); if (r < 0) goto fail; @@ -932,7 +932,7 @@ static void mount_enter_mounting(Mount *m) { r = exec_command_append(m->control_command, "-s", NULL); if (r >= 0 && m->parameters_fragment.fstype) r = exec_command_append(m->control_command, "-t", m->parameters_fragment.fstype, NULL); - if (r >= 0 && !strempty(opts)) + if (r >= 0 && !isempty(opts)) r = exec_command_append(m->control_command, "-o", opts, NULL); } else r = -ENOENT;