diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2005-04-29 11:59:56 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2005-04-29 11:59:56 +0000 |
commit | dd2fcb2e8c9d714d6c35de631b959695855875a0 (patch) | |
tree | f376ab2ccc6c272f52fce8364dab1eb3174df36c /modules/pam_xauth/pam_xauth.c | |
parent | b808b3cd81f4beab1985b1ad821e188c44582cbd (diff) | |
download | pam-dd2fcb2e8c9d714d6c35de631b959695855875a0.tar.gz pam-dd2fcb2e8c9d714d6c35de631b959695855875a0.tar.bz2 pam-dd2fcb2e8c9d714d6c35de631b959695855875a0.zip |
Relevant BUGIDs: none
Purpose of commit: bugfix
Commit summary:
---------------
Fix some compiler warnings
Diffstat (limited to 'modules/pam_xauth/pam_xauth.c')
-rw-r--r-- | modules/pam_xauth/pam_xauth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/pam_xauth/pam_xauth.c b/modules/pam_xauth/pam_xauth.c index 700edbd3..313c3ae4 100644 --- a/modules/pam_xauth/pam_xauth.c +++ b/modules/pam_xauth/pam_xauth.c @@ -522,7 +522,8 @@ pam_sm_open_session(pam_handle_t *pamh, int flags, int argc, const char **argv) } /* Set permissions on the new file and dispose of the * descriptor. */ - fchown(fd, tpwd->pw_uid, tpwd->pw_gid); + if (fchown(fd, tpwd->pw_uid, tpwd->pw_gid) < 0) + syslog (LOG_ERR, "pam_xauth: fchown failed: %m"); close(fd); /* Get a copy of the filename to save as a data item for |