diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-06-01 10:10:22 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-06-01 10:10:22 +0000 |
commit | 62d85035895152c8232052dcfb1bbd3b549b7df9 (patch) | |
tree | 49c794fe1f2b108ddf394f6d0263d04b6a0973f5 /loginutils/getty.c | |
parent | e0fd13e901253c5742f1e80778e149a0a07dc874 (diff) | |
download | busybox-w32-62d85035895152c8232052dcfb1bbd3b549b7df9.tar.gz busybox-w32-62d85035895152c8232052dcfb1bbd3b549b7df9.tar.bz2 busybox-w32-62d85035895152c8232052dcfb1bbd3b549b7df9.zip |
- 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.c | 2 |
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) | |||
605 | safe_strncpy(ut.ut_line, line, sizeof(ut.ut_line)); | 605 | safe_strncpy(ut.ut_line, line, sizeof(ut.ut_line)); |
606 | if (fakehost) | 606 | if (fakehost) |
607 | safe_strncpy(ut.ut_host, fakehost, sizeof(ut.ut_host)); | 607 | safe_strncpy(ut.ut_host, fakehost, sizeof(ut.ut_host)); |
608 | ut.ut_time = time(NULL); | 608 | ut.ut_tv.tv_sec = time(NULL); |
609 | ut.ut_type = LOGIN_PROCESS; | 609 | ut.ut_type = LOGIN_PROCESS; |
610 | ut.ut_pid = mypid; | 610 | ut.ut_pid = mypid; |
611 | 611 | ||