Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 687234 | Differences between
and this patch

Collapse All | Expand All

(-)a/modules/pam_lastlog/pam_lastlog.c (+5 lines)
Lines 26-31 Link Here
26
#include <sys/types.h>
26
#include <sys/types.h>
27
#include <syslog.h>
27
#include <syslog.h>
28
#include <unistd.h>
28
#include <unistd.h>
29
#include <paths.h>
29
30
30
#if defined(hpux) || defined(sunos) || defined(solaris)
31
#if defined(hpux) || defined(sunos) || defined(solaris)
31
# ifndef _PATH_LASTLOG
32
# ifndef _PATH_LASTLOG
Lines 403-409 last_login_write(pam_handle_t *pamh, int announce, int last_fd, Link Here
403
404
404
    if (announce & LASTLOG_WTMP) {
405
    if (announce & LASTLOG_WTMP) {
405
	/* write wtmp entry for user */
406
	/* write wtmp entry for user */
407
#ifdef HAVE_LOGWTMP
406
	logwtmp(last_login.ll_line, user, remote_host);
408
	logwtmp(last_login.ll_line, user, remote_host);
409
#endif
407
    }
410
    }
408
411
409
    /* cleanup */
412
    /* cleanup */
Lines 714-720 pam_sm_close_session (pam_handle_t *pamh, int flags, Link Here
714
    terminal_line = get_tty(pamh);
717
    terminal_line = get_tty(pamh);
715
718
716
    /* Wipe out utmp logout entry */
719
    /* Wipe out utmp logout entry */
720
#ifdef HAVE_LOGWTMP
717
    logwtmp(terminal_line, "", "");
721
    logwtmp(terminal_line, "", "");
722
#endif
718
723
719
    return PAM_SUCCESS;
724
    return PAM_SUCCESS;
720
}
725
}
(-)a/modules/pam_rhosts/pam_rhosts.c (-2 / +3 lines)
Lines 112-119 int pam_sm_authenticate (pam_handle_t *pamh, int flags, int argc, Link Here
112
112
113
#ifdef HAVE_RUSEROK_AF
113
#ifdef HAVE_RUSEROK_AF
114
    retval = ruserok_af (rhost, as_root, ruser, luser, PF_UNSPEC);
114
    retval = ruserok_af (rhost, as_root, ruser, luser, PF_UNSPEC);
115
#else
115
#elif HAVE_RUSEROK
116
    retval = ruserok (rhost, as_root, ruser, luser);
116
    retval = ruserok (rhost, as_root, ruser, luser);
117
#else
118
    retval = 1;
117
#endif
119
#endif
118
    if (retval != 0) {
120
    if (retval != 0) {
119
      if (!opt_silent || opt_debug)
121
      if (!opt_silent || opt_debug)
120
- 

Return to bug 687234