summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1997-04-16 19:54:45 +0000
committerThomas Bushnell <thomas@gnu.org>1997-04-16 19:54:45 +0000
commitac733c0f74caa68b1800c1a1d177575cd1fd1436 (patch)
tree8125daba31e31552d924b22d2d877d9a8051cf13 /utils
parent30f268f8a13209f720dc4879e1dde8e8319ebcb8 (diff)
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.
Diffstat (limited to 'utils')
-rw-r--r--utils/ChangeLog5
-rw-r--r--utils/login.c4
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);
}