mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 20:25:38 +03:00
cryptsetup: use PATH_IN_SET() instead of STR_IN_SET() when comparing paths
It's formally more correct.
This commit is contained in:
parent
2abe64666e
commit
e3ca6580ae
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user