From: Lennart Poettering Date: Fri, 5 Oct 2018 20:39:02 +0000 (+0200) Subject: cryptsetup: use PATH_IN_SET() instead of STR_IN_SET() when comparing paths X-Git-Tag: v240~621^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10293%2Fhead;p=thirdparty%2Fsystemd.git cryptsetup: use PATH_IN_SET() instead of STR_IN_SET() when comparing paths It's formally more correct. --- diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c index 6c4aabe57db..cada032bb98 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;