diff options
Diffstat (limited to 'modules/pam_timestamp/hmacsha1.c')
-rw-r--r-- | modules/pam_timestamp/hmacsha1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/pam_timestamp/hmacsha1.c b/modules/pam_timestamp/hmacsha1.c index 5b3774f..573ecf3 100644 --- a/modules/pam_timestamp/hmacsha1.c +++ b/modules/pam_timestamp/hmacsha1.c @@ -69,8 +69,8 @@ hmac_key_create(pam_handle_t *pamh, const char *filename, size_t key_size, pam_syslog(pamh, LOG_ERR, "Cannot create %s: %m", filename); return; } - - + + if (fchown(keyfd, owner, group) == -1) { pam_syslog(pamh, LOG_ERR, "Cannot chown %s: %m", filename); return; |