]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cryptsetup: use mangle_none() at one more place
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 18 Jan 2025 19:42:20 +0000 (04:42 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 20 Jan 2025 18:42:34 +0000 (03:42 +0900)
src/cryptsetup/cryptsetup-generator.c

index 12b6044d8c5fca87ba6c22d2713531d3ed722671..e4d2ce6257cf80f9ace6f8340622b72817332788 100644 (file)
@@ -6,6 +6,7 @@
 #include <sys/types.h>
 
 #include "alloc-util.h"
+#include "cryptsetup-util.h"
 #include "dropin.h"
 #include "escape.h"
 #include "fd-util.h"
@@ -232,7 +233,7 @@ static int print_dependencies(FILE *f, const char* device_path, const char* time
         assert(f);
         assert(device_path);
 
-        if (STR_IN_SET(device_path, "-", "none"))
+        if (!mangle_none(device_path))
                 /* None, nothing to do */
                 return 0;