aboutsummaryrefslogtreecommitdiff
path: root/loginutils/getty.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-01 10:10:22 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-01 10:10:22 +0000
commit62d85035895152c8232052dcfb1bbd3b549b7df9 (patch)
tree49c794fe1f2b108ddf394f6d0263d04b6a0973f5 /loginutils/getty.c
parente0fd13e901253c5742f1e80778e149a0a07dc874 (diff)
downloadbusybox-62d85035895152c8232052dcfb1bbd3b549b7df9.tar.gz
- use ut_user rather than ut_name (Cristian Ionescu-Idbohrn)
- use ut_tv.tv_sec rather than ut_time (me) - shrink halt a little bit (me): halt_main 464 433 -31 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-31) Total: -31 bytes
Diffstat (limited to 'loginutils/getty.c')
-rw-r--r--loginutils/getty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c
index ae183a62b..13a8c0c6c 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -605,7 +605,7 @@ static void update_utmp(const char *line, char *fakehost)
safe_strncpy(ut.ut_line, line, sizeof(ut.ut_line));
if (fakehost)
safe_strncpy(ut.ut_host, fakehost, sizeof(ut.ut_host));
- ut.ut_time = time(NULL);
+ ut.ut_tv.tv_sec = time(NULL);
ut.ut_type = LOGIN_PROCESS;
ut.ut_pid = mypid;