diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2012-02-29 02:31:43 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2012-02-29 02:31:43 -0300 |
commit | e87b42b0f90e1a4d8b255f1dab945f2f3bb13cdc (patch) | |
tree | e36d5720f76b5db9dd5f97260108607023d7d2e7 /core/shadow/write-utmp-wtmp-entries.patch | |
parent | c0e37a8f32f335c12352f23cdc73113099e057ec (diff) | |
parent | 32b05a621cb20af1bd4b7cd6f5609b7512bb20f1 (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
extra/avfs/PKGBUILD
extra/gtk2/PKGBUILD
extra/hercules/PKGBUILD
multilib/lib32-libcap/PKGBUILD
multilib/lib32-qt/PKGBUILD
Diffstat (limited to 'core/shadow/write-utmp-wtmp-entries.patch')
-rw-r--r-- | core/shadow/write-utmp-wtmp-entries.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/core/shadow/write-utmp-wtmp-entries.patch b/core/shadow/write-utmp-wtmp-entries.patch new file mode 100644 index 000000000..b4272ca61 --- /dev/null +++ b/core/shadow/write-utmp-wtmp-entries.patch @@ -0,0 +1,47 @@ +Index: upstream/trunk/src/login.c +=================================================================== +--- a/src/login.c (revision 3437) ++++ b/src/login.c (revision 3438) +@@ -126,10 +126,12 @@ + static void setup_tty (void); + static void process_flags (int argc, char *const *argv); + static /*@observer@*/const char *get_failent_user (/*@returned@*/const char *user); ++#ifndef USE_PAM + static void update_utmp (const char *user, + const char *tty, + const char *host, + /*@null@*/const struct utmp *utent); ++#endif /* ! USE_PAM */ + + #ifndef USE_PAM + static struct faillog faillog; +@@ -471,6 +473,7 @@ + return failent_user; + } + ++#ifndef USE_PAM + /* + * update_utmp - Update or create an utmp entry in utmp, wtmp, utmpw, and + * wtmpx +@@ -496,6 +499,7 @@ + free (utx); + #endif /* USE_UTMPX */ + } ++#endif /* ! USE_PAM */ + + /* + * login - create a new login session for a user +@@ -1208,11 +1212,13 @@ + } + } + ++#ifndef USE_PAM + /* + * The utmp entry needs to be updated to indicate the new status + * of the session, the new PID and SID. + */ + update_utmp (username, tty, hostname, utent); ++#endif /* ! USE_PAM */ + + /* The pwd and spwd entries for the user have been copied. + * |