[prev in list] [next in list] [prev in thread] [next in thread]
List: pkg-shadow-commits
Subject: [Pkg-shadow-commits] r2461 - in upstream/trunk: . src
From: nekral-guest () alioth ! debian ! org
Date: 2008-11-23 12:10:21
Message-ID: E1L4DnB-000075-Hv () alioth ! debian ! org
[Download RAW message or body]
Author: nekral-guest
Date: 2008-11-23 12:10:21 +0000 (Sun, 23 Nov 2008)
New Revision: 2461
Modified:
upstream/trunk/ChangeLog
upstream/trunk/src/su.c
Log:
* src/su.c: (!USE_PAM) Provide visible information indicating that
su was denied.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2008-11-23 00:58:36 UTC (rev 2460)
+++ upstream/trunk/ChangeLog 2008-11-23 12:10:21 UTC (rev 2461)
@@ -1,5 +1,10 @@
2008-11-23 Nicolas François <nicolas.francois@centraliens.net>
+ * src/su.c: (!USE_PAM) Provide visible information indicating that
+ su was denied.
+
+2008-11-23 Nicolas François <nicolas.francois@centraliens.net>
+
* man/su.1.xml: Fix the su synopsis. username is referenced in the
manpage, not LOGIN.
* man/ja/login.1: Fix the path of the utmp and wtmp files.
Modified: upstream/trunk/src/su.c
===================================================================
--- upstream/trunk/src/su.c 2008-11-23 00:58:36 UTC (rev 2460)
+++ upstream/trunk/src/su.c 2008-11-23 12:10:21 UTC (rev 2461)
@@ -721,7 +721,8 @@
*/
if (!amroot && pw_auth (pwent.pw_passwd, name, PW_SU, (char *) 0)) {
SYSLOG ((pwent.pw_uid ? LOG_NOTICE : LOG_WARN,
- "Authentication failed for %s", name));
+ "Authentication failed for %s", name));
+ fprintf(stderr, _("%s: Authentication failure\n"), Prog);
su_failure (tty);
}
(void) signal (SIGQUIT, oldsig);
@@ -757,8 +758,10 @@
if (!amroot) {
if (!isttytime (pwent.pw_name, "SU", time ((time_t *) 0))) {
SYSLOG (((0 != pwent.pw_uid) ? LOG_WARN : LOG_CRIT,
- "SU by %s to restricted account %s",
- oldname, name));
+ "SU by %s to restricted account %s",
+ oldname, name));
+ fprintf(stderr,
+ _("%s: You are not authorized to su at that time\n"), Prog);
su_failure (tty);
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic