]> granicus.if.org Git - shadow/commitdiff
* src/su.c: Use a boolean instead of 0.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 21 May 2009 11:58:59 +0000 (11:58 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 21 May 2009 11:58:59 +0000 (11:58 +0000)
ChangeLog
src/su.c

index b71b023b9fe90f4346dc8d8b41caa5e9aed8cbe0..30096a530ed12ccb32cbb43fce8e8f2e2a88d966 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-21  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * src/su.c: Use a boolean instead of 0.
+
 2009-05-20  Nicolas François  <nicolas.francois@centraliens.net>
 
        * man/usermod.8.xml: Fixed typos.
index 80f8667d5bbaa1524b5f721a7d0f1725cb6f711c..3cb66f665c3780306039b23e3c6d823645aa8e93 100644 (file)
--- a/src/su.c
+++ b/src/su.c
@@ -161,7 +161,7 @@ static bool restricted_shell (const char *shellstr)
 
 static void su_failure (const char *tty)
 {
-       sulog (tty, 0, oldname, name);  /* log failed attempt */
+       sulog (tty, false, oldname, name);      /* log failed attempt */
 #ifdef USE_SYSLOG
        if (getdef_bool ("SYSLOG_SU_ENAB")) {
                SYSLOG (((0 != pwent.pw_uid) ? LOG_INFO : LOG_NOTICE,