1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-01-19 16:52:17 +01:00

correct fchmod() return check

This commit is contained in:
Klas Lindfors 2015-09-14 13:14:30 +02:00
parent dd96aa71dc
commit 056dac4794

View File

@ -611,7 +611,7 @@ do_challenge_response(pam_handle_t *pamh, struct cfg *cfg, const char *username)
goto restpriv_out; goto restpriv_out;
} }
if (! fchmod (fd, S_IRUSR | S_IWUSR)) { if (fchmod (fd, S_IRUSR | S_IWUSR) != 0) {
DBG (("could not set correct file permissions")); DBG (("could not set correct file permissions"));
goto restpriv_out; goto restpriv_out;
} }