diff options
author | Thomas Bushnell <thomas@gnu.org> | 1997-04-16 20:00:35 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1997-04-16 20:00:35 +0000 |
commit | 88179a43127e2ea3229fff9bdbf08b8932906b1a (patch) | |
tree | 92b63cab11f7059e6d2fbfd3db22ce6b1f41f42d | |
parent | ac733c0f74caa68b1800c1a1d177575cd1fd1436 (diff) |
Wed Apr 16 15:59:41 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* login.c (add_utmp_entry): Revert change of December 10, 1996.
-rw-r--r-- | utils/ChangeLog | 4 | ||||
-rw-r--r-- | utils/login.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/utils/ChangeLog b/utils/ChangeLog index 9363f5ff..ee126bb7 100644 --- a/utils/ChangeLog +++ b/utils/ChangeLog @@ -1,3 +1,7 @@ +Wed Apr 16 15:59:41 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> + + * login.c (add_utmp_entry): Revert change of December 10, 1996. + Fri Mar 7 11:53:02 1997 Miles Bader <miles@gnu.ai.mit.edu> * addu.c: New file. diff --git a/utils/login.c b/utils/login.c index cf6de37b..13e1cfee 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[0]; + addr = old_utmp->ut_addr; } } } strncpy (utmp.ut_host, host ?: "", sizeof (utmp.ut_host)); - utmp.ut_addr[0] = addr; + utmp.ut_addr = addr; login (&utmp); } |