diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-12-27 22:26:29 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-12-27 22:26:29 +0000 |
commit | 4a1f09d742873657ad2a7df0c17b31479d2e1531 (patch) | |
tree | 56ee044fa13a086a737c605a23b3b9f39810a7d6 /lib/libulog | |
parent | 745abd596372d2b6afcb7fdc5079de7e2cd72a0a (diff) | |
download | src-4a1f09d742873657ad2a7df0c17b31479d2e1531.tar.gz src-4a1f09d742873657ad2a7df0c17b31479d2e1531.zip |
Notes
Diffstat (limited to 'lib/libulog')
-rw-r--r-- | lib/libulog/ulog_getutxent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libulog/ulog_getutxent.c b/lib/libulog/ulog_getutxent.c index bcfab480cbed..c606ac911679 100644 --- a/lib/libulog/ulog_getutxent.c +++ b/lib/libulog/ulog_getutxent.c @@ -71,7 +71,7 @@ ulog_futmp_to_utmpx(const struct futmp *ut, struct ulog_utmpx *utx) utx->ut_type = NEW_TIME; else if (MATCH(user, "shutdown") && MATCH(line, "~")) utx->ut_type = SHUTDOWN_TIME; - else if (MATCH(user, "") && MATCH(host, "")) { + else if (MATCH(user, "") && MATCH(host, "") && !MATCH(line, "")) { utx->ut_type = DEAD_PROCESS; /* XXX: ut_id and ut_pid missing. ut_line not needed. */ COPY_STRING(line); |