summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1997-04-16 20:00:35 +0000
committerThomas Bushnell <thomas@gnu.org>1997-04-16 20:00:35 +0000
commit88179a43127e2ea3229fff9bdbf08b8932906b1a (patch)
tree92b63cab11f7059e6d2fbfd3db22ce6b1f41f42d /utils
parentac733c0f74caa68b1800c1a1d177575cd1fd1436 (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.
Diffstat (limited to 'utils')
-rw-r--r--utils/ChangeLog4
-rw-r--r--utils/login.c4
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);
}