]> git.ipfire.org Git - thirdparty/util-linux.git/commit
login-utils/su-common: Validate all return values again
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 25 Sep 2024 06:12:45 +0000 (08:12 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 25 Sep 2024 06:16:52 +0000 (08:16 +0200)
commitd159b58bfd01bc261107c5a7a9e00d1715f33f14
tree74d09074732527d8035ac3e9992020282d893052
parent42aa4cd4f6383875d4163620b0590c4ab659b68b
login-utils/su-common: Validate all return values again

The additional coded added in commit
d6564701e812 ("login-utils/su-common: Check that the user didn't change during PAM transaction")
was inserted in between the assignment and tests of "rc",
making the return value unchecked.
Add a new explicit check.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
login-utils/su-common.c