diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/ChangeLog | 5 | ||||
-rw-r--r-- | utils/login.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/utils/ChangeLog b/utils/ChangeLog index 621750fd..9363f5ff 100644 --- a/utils/ChangeLog +++ b/utils/ChangeLog @@ -49,6 +49,11 @@ Mon Dec 16 20:52:19 1996 Miles Bader <miles@gnu.ai.mit.edu> Add --head and --bottom/--tail/-b options. (main): Implement --bottom/--tail/-b. +Tue Dec 10 11:40:04 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> + + * login.c (add_utmp_entry): ut_addr has changed to be an array; + stash the IP address in the first slot. + Sat Nov 23 16:30:16 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * psout.c (psout): Delete var REMOVE. diff --git a/utils/login.c b/utils/login.c index 13e1cfee..cf6de37b 100644 --- a/utils/login.c +++ b/utils/login.c @@ -190,13 +190,13 @@ add_utmp_entry (char *args, unsigned args_len, int inherit_host) if (! host) host = old_utmp->ut_host; if (! addr) - addr = old_utmp->ut_addr; + addr = old_utmp->ut_addr[0]; } } } strncpy (utmp.ut_host, host ?: "", sizeof (utmp.ut_host)); - utmp.ut_addr = addr; + utmp.ut_addr[0] = addr; login (&utmp); } |