[Pkg-shadow-commits] r2421 - in upstream/trunk: . src
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Sat Sep 20 13:20:34 UTC 2008
Author: nekral-guest
Date: 2008-09-20 13:20:31 +0000 (Sat, 20 Sep 2008)
New Revision: 2421
Modified:
upstream/trunk/ChangeLog
upstream/trunk/src/login.c
Log:
* src/login.c: Use failent_user to log to audit. username is the
caller, not the user login tries to authenticate.
* src/login.c: Use pwd->pw_name instead of pwd->pw_uid. This might
be more precise (name must be unique, uid might not be).
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2008-09-20 10:53:00 UTC (rev 2420)
+++ upstream/trunk/ChangeLog 2008-09-20 13:20:31 UTC (rev 2421)
@@ -1,5 +1,12 @@
2008-09-20 Nicolas François <nicolas.francois at centraliens.net>
+ * src/login.c: Use failent_user to log to audit. username is the
+ caller, not the user login tries to authenticate.
+ * src/login.c: Use pwd->pw_name instead of pwd->pw_uid. This might
+ be more precise (name must be unique, uid might not be).
+
+2008-09-20 Nicolas François <nicolas.francois at centraliens.net>
+
* man/passwd.1.xml: passwd cannot change the full name of the
user, the user's login shell; but it can change the account or
password validity period. Thanks to Reuben Thomas.
Modified: upstream/trunk/src/login.c
===================================================================
--- upstream/trunk/src/login.c 2008-09-20 10:53:00 UTC (rev 2420)
+++ upstream/trunk/src/login.c 2008-09-20 13:20:31 UTC (rev 2421)
@@ -752,8 +752,7 @@
AUDIT_USER_LOGIN,
NULL, /* Prog. name */
"login",
- (NULL!=username)?username
- :"(unknown)",
+ failent_user,
AUDIT_NO_ID,
hostname,
NULL, /* addr */
@@ -1045,8 +1044,8 @@
AUDIT_USER_LOGIN,
NULL, /* Prog. name */
"login",
- NULL, /* user's name => use uid */
- (unsigned int) pwd->pw_uid,
+ pwd->pw_name,
+ AUDIT_NO_ID,
hostname,
NULL, /* addr */
tty,
More information about the Pkg-shadow-commits
mailing list