1 diff -urN util-linux-2.11b.org/login-utils/login.c util-linux-2.11b/login-utils/login.c
2 --- util-linux-2.11b.org/login-utils/login.c Wed May 2 19:09:39 2001
3 +++ util-linux-2.11b/login-utils/login.c Wed May 2 19:06:08 2001
6 memset(&ut, 0, sizeof(ut));
9 + username = "unknown";
11 strncpy(ut.ut_user, username, sizeof(ut.ut_user));
13 strncpy(ut.ut_id, line + 3, sizeof(ut.ut_id));
19 + /* if we didn't get a user on the command line,
21 + pam_get_item(pamh, PAM_USER, (const void **) &username);
22 + if (!username || username[0] == '\0')
23 + pam_set_item(pamh, PAM_USER, NULL);
25 /* there may be better ways to deal with some of these
26 conditions, but at least this way I don't think we'll