summaryrefslogtreecommitdiff
path: root/utils/login.c
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/login.c
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/login.c')
-rw-r--r--utils/login.c4
1 files changed, 2 insertions, 2 deletions
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);
}