summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-10-05 22:39:02 +0200
committerLennart Poettering <lennart@poettering.net>2018-10-05 22:39:02 +0200
commite3ca6580ae2d9a72dd81a408ad7fcafb829a0882 (patch)
tree694cd9d8854c05a173d590e9da83a69a2cffeca2
parent2abe64666e544be6499f870618185f8819b4c152 (diff)
downloadsystemd-e3ca6580ae2d9a72dd81a408ad7fcafb829a0882.tar.gz
systemd-e3ca6580ae2d9a72dd81a408ad7fcafb829a0882.tar.bz2
systemd-e3ca6580ae2d9a72dd81a408ad7fcafb829a0882.zip
cryptsetup: use PATH_IN_SET() instead of STR_IN_SET() when comparing paths
It's formally more correct.
-rw-r--r--src/cryptsetup/cryptsetup-generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c
index 6c4aabe57d..cada032bb9 100644
--- a/src/cryptsetup/cryptsetup-generator.c
+++ b/src/cryptsetup/cryptsetup-generator.c
@@ -192,7 +192,7 @@ static int create_disk(
netdev ? "remote-cryptsetup.target" : "cryptsetup.target");
if (password) {
- if (STR_IN_SET(password, "/dev/urandom", "/dev/random", "/dev/hw_random"))
+ if (PATH_IN_SET(password, "/dev/urandom", "/dev/random", "/dev/hw_random"))
fputs("After=systemd-random-seed.service\n", f);
else if (!STR_IN_SET(password, "-", "none")) {
_cleanup_free_ char *uu;