summaryrefslogtreecommitdiff
path: root/modules/pam_xauth/pam_xauth.c
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2005-04-29 11:59:56 +0000
committerThorsten Kukuk <kukuk@thkukuk.de>2005-04-29 11:59:56 +0000
commitdd2fcb2e8c9d714d6c35de631b959695855875a0 (patch)
treef376ab2ccc6c272f52fce8364dab1eb3174df36c /modules/pam_xauth/pam_xauth.c
parentb808b3cd81f4beab1985b1ad821e188c44582cbd (diff)
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.c3
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