mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-01-19 07:52:23 +01:00
correct fchmod() return check
This commit is contained in:
parent
dd96aa71dc
commit
056dac4794
@ -611,7 +611,7 @@ do_challenge_response(pam_handle_t *pamh, struct cfg *cfg, const char *username)
|
||||
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"));
|
||||
goto restpriv_out;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user