Patch by jonlar in Bug 312 to split the U_W_TMP feature into sep UTMP and WTMP options

This commit is contained in:
Mike Frysinger
2005-07-01 01:04:32 +00:00
parent a87bb60809
commit 8deb686d2e
6 changed files with 35 additions and 27 deletions

View File

@@ -91,7 +91,7 @@ int su_main ( int argc, char **argv )
opt_args = argv + optind;
#if defined( SYSLOG_SUCCESS ) || defined( SYSLOG_FAILURE )
#ifdef CONFIG_FEATURE_U_W_TMP
#ifdef CONFIG_FEATURE_UTMP
/* The utmp entry (via getlogin) is probably the best way to identify
the user, especially if someone su's from a su-shell. */
old_user = getlogin ( );