chiark / gitweb /
service: make the fsck pass no configurable
[elogind.git] / src / cryptsetup / cryptsetup.c
index f214d60d569fda55c0edadc0ab8359ca9c382666..6d4e965fe11be56eface30edb832816962058e69 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "log.h"
 #include "util.h"
+#include "path-util.h"
 #include "strv.h"
 #include "ask-password-api.h"
 #include "def.h"
@@ -190,7 +191,8 @@ static char *disk_mount_point(const char *label) {
         if (asprintf(&device, "/dev/mapper/%s", label) < 0)
                 goto finish;
 
-        if (!(f = setmntent("/etc/fstab", "r")))
+        f = setmntent("/etc/fstab", "r");
+        if (!f)
                 goto finish;
 
         while ((m = getmntent(f)))