From: Yu Watanabe Date: Sat, 18 Jan 2025 19:42:20 +0000 (+0900) Subject: cryptsetup: use mangle_none() at one more place X-Git-Tag: v258-rc1~1549^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e21105002dc4e8e3f6537dcc09cb64247100d57;p=thirdparty%2Fsystemd.git cryptsetup: use mangle_none() at one more place --- diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c index 12b6044d8c5..e4d2ce6257c 100644 --- a/src/cryptsetup/cryptsetup-generator.c +++ b/src/cryptsetup/cryptsetup-generator.c @@ -6,6 +6,7 @@ #include #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;