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 | |
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>
-rw-r--r-- | sessreg.c | 4 | ||||
-rw-r--r-- | sessreg.h | 7 |
2 files changed, 0 insertions, 11 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; @@ -75,13 +75,6 @@ # define USE_LASTLOG #endif -#ifdef CSRG_BASED -#if !defined(__FreeBSD__) && !defined(__OpenBSD__) -/* *BSD doesn't like a ':0' type entry in utmp */ -#define NO_UTMP -#endif -#endif - #ifndef WTMP_FILE # ifdef _PATH_WTMP # define WTMP_FILE _PATH_WTMP |