Purpose of commit: cleanup
Commit summary:
---------------
2007-02-06 Tomas Mraz <t8m@centrum.cz>
* modules/pam_loginuid/pam_loginuid.c (set_loginuid): Remove
debug syslog message when loginuid doesn't exist.
+2007-02-06 Tomas Mraz <t8m@centrum.cz>
+
+ * modules/pam_loginuid/pam_loginuid.c (set_loginuid): Remove
+ debug syslog message when loginuid doesn't exist.
+
2007-02-01 Tomas Mraz <t8m@centrum.cz>
* xtests/tst-pam_unix3.c: Fix typos in comments.
count = snprintf(loginuid, sizeof(loginuid), "%d", uid);
fd = open("/proc/self/loginuid", O_NOFOLLOW|O_WRONLY|O_TRUNC);
if (fd < 0) {
- int loglevel = LOG_DEBUG;
if (errno != ENOENT) {
rc = 1;
- loglevel = LOG_ERR;
+ pam_syslog(pamh, LOG_ERR, "set_loginuid failed opening loginuid");
}
- pam_syslog(pamh, loglevel, "set_loginuid failed opening loginuid");
return rc;
}
if (pam_modutil_write(fd, loginuid, count) != count)