]> git.ipfire.org Git - thirdparty/systemd.git/commit
cryptsetup: fix flags check 19562/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 May 2021 13:04:10 +0000 (15:04 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 May 2021 17:53:52 +0000 (19:53 +0200)
commit9d59f5b2f97760637ed32f778eeacf9869dc553e
tree483d3e0754396dceeee18ab68f0e5dfea8cf8e4d
parent8205c151b34103728bd2293d7c7df05ab6fa6312
cryptsetup: fix flags check

FLAGS_SET() checks if *all* the bits are set. In this case we want to check
if *any* are. FLAGS_SET() was added in cde2f8605e0c3842f9a87785dd758f955f2d04ba,
but not a bug then yet, because with just one bit, both options are equivalent.
But when more bits were added later, this stopped being correct.
src/cryptsetup/cryptsetup.c