]> granicus.if.org Git - linux-pam/commitdiff
Relevant BUGIDs:
authorTomas Mraz <tm@t8m.info>
Tue, 6 Feb 2007 15:01:58 +0000 (15:01 +0000)
committerTomas Mraz <tm@t8m.info>
Tue, 6 Feb 2007 15:01:58 +0000 (15:01 +0000)
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.

ChangeLog
modules/pam_loginuid/pam_loginuid.c

index 2845afcb8c606226128c028e322f88e4eefca31b..091d5d88ba4a30f585fe4313540be8536b51a72c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
index 13d915e3b2dd515774697cfaa53c77cbd77650b3..3e9b4779b52ef51afe1b9c29170f8dd012a59d01 100644 (file)
@@ -56,12 +56,10 @@ static int set_loginuid(pam_handle_t *pamh, uid_t uid)
        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)