]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/mount: filter out "fail" option as well
authorMike Yuan <me@yhndnzj.com>
Sun, 9 Feb 2025 19:25:21 +0000 (20:25 +0100)
committerMike Yuan <me@yhndnzj.com>
Wed, 12 Feb 2025 13:43:06 +0000 (14:43 +0100)
src/core/mount.c

index 6fff94d19b294562194b5596a4d6dcad3b152425..8a396f67f6bd5d3867df991453de4ae26966ae24 100644 (file)
@@ -1149,7 +1149,7 @@ static int mount_set_mount_command(Mount *m, ExecCommand *c, const MountParamete
         }
 
         _cleanup_free_ char *opts = NULL;
-        r = fstab_filter_options(p->options, "nofail\0" "noauto\0" "auto\0", NULL, NULL, NULL, &opts);
+        r = fstab_filter_options(p->options, "nofail\0" "fail\0" "noauto\0" "auto\0", NULL, NULL, NULL, &opts);
         if (r < 0)
                 return r;