* 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).
This commit is contained in:
nekral-guest 2008-09-20 13:20:31 +00:00
parent c71e7861ed
commit 9fa519c983
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2008-09-20 Nicolas François <nicolas.francois@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@centraliens.net>
* man/passwd.1.xml: passwd cannot change the full name of the

View File

@ -752,8 +752,7 @@ int main (int argc, char **argv)
AUDIT_USER_LOGIN,
NULL, /* Prog. name */
"login",
(NULL!=username)?username
:"(unknown)",
failent_user,
AUDIT_NO_ID,
hostname,
NULL, /* addr */
@ -1045,8 +1044,8 @@ int main (int argc, char **argv)
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,