diff options
author | Ed Schouten <ed@80386.nl> | 2012-09-15 20:27:57 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-12-16 11:59:30 -0800 |
commit | 88bf1500095d7aaea9689a6d0367d6ff5c868292 (patch) | |
tree | f6a3b1c281e6d5f3e92c477e1bc5f4599fbb965c /sessreg.c | |
parent | d6570f5188ac8b223a2ae8d1ef596f313938acca (diff) |
Remove dubious code.
The NO_UTMP definition is set on non-FreeBSD, non-OpenBSD, BSD-based
systems. When looking at the commonly used BSD-based operating systems,
they either use utmpx, or I can't think of a reason why the utmp code
wouldn't work.
If it turns out some obscure operating system breaks because of this
change, we should replace this by something more accurate, such as an
Autoconf check or an #ifdef specific to that operating system.
Signed-off-by: Ed Schouten <ed@80386.nl>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'sessreg.c')
-rw-r--r-- | sessreg.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -258,16 +258,12 @@ main (int argc, char **argv) wtmpx_file = WTMPX_FILE; #endif } -#ifndef NO_UTMP if (!uflag) { utmp_file = UTMP_FILE; #if defined(USE_UTMPX) && defined(HAVE_UTMPXNAME) utmpx_file = UTMPX_FILE; #endif } -#else - utmp_none = 1; -#endif #ifdef USE_LASTLOG if (!Lflag) llog_file = LLOG_FILE; |