Contents of /trunk/shadow/patches/shadow-4.1.5-write-utmp-wtmp-entries.patch
Parent Directory | Revision Log
Revision 1667 -
(show annotations)
(download)
Fri Mar 2 13:08:24 2012 UTC (12 years, 8 months ago) by niro
File size: 1269 byte(s)
Fri Mar 2 13:08:24 2012 UTC (12 years, 8 months ago) by niro
File size: 1269 byte(s)
-added more fixes
1 | Index: upstream/trunk/src/login.c |
2 | =================================================================== |
3 | --- a/src/login.c (revision 3437) |
4 | +++ b/src/login.c (revision 3438) |
5 | @@ -126,10 +126,12 @@ |
6 | static void setup_tty (void); |
7 | static void process_flags (int argc, char *const *argv); |
8 | static /*@observer@*/const char *get_failent_user (/*@returned@*/const char *user); |
9 | +#ifndef USE_PAM |
10 | static void update_utmp (const char *user, |
11 | const char *tty, |
12 | const char *host, |
13 | /*@null@*/const struct utmp *utent); |
14 | +#endif /* ! USE_PAM */ |
15 | |
16 | #ifndef USE_PAM |
17 | static struct faillog faillog; |
18 | @@ -471,6 +473,7 @@ |
19 | return failent_user; |
20 | } |
21 | |
22 | +#ifndef USE_PAM |
23 | /* |
24 | * update_utmp - Update or create an utmp entry in utmp, wtmp, utmpw, and |
25 | * wtmpx |
26 | @@ -496,6 +499,7 @@ |
27 | free (utx); |
28 | #endif /* USE_UTMPX */ |
29 | } |
30 | +#endif /* ! USE_PAM */ |
31 | |
32 | /* |
33 | * login - create a new login session for a user |
34 | @@ -1208,11 +1212,13 @@ |
35 | } |
36 | } |
37 | |
38 | +#ifndef USE_PAM |
39 | /* |
40 | * The utmp entry needs to be updated to indicate the new status |
41 | * of the session, the new PID and SID. |
42 | */ |
43 | update_utmp (username, tty, hostname, utent); |
44 | +#endif /* ! USE_PAM */ |
45 | |
46 | /* The pwd and spwd entries for the user have been copied. |
47 | * |