summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lastlogin
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-12-26 22:36:05 +0000
committered <ed@FreeBSD.org>2009-12-26 22:36:05 +0000
commit2062dc2dbfc1a90fe4ab19dac08bf244edcdd6b9 (patch)
tree58bea5a34619877eb8346d2fea79c60e9cb0def0 /usr.sbin/lastlogin
parentdfcc7c385f2569bde1e4bd62a5c78a40b557608f (diff)
downloadFreeBSD-src-2062dc2dbfc1a90fe4ab19dac08bf244edcdd6b9.zip
FreeBSD-src-2062dc2dbfc1a90fe4ab19dac08bf244edcdd6b9.tar.gz
Several refinements to libulog's API.
- Only set the fields in the ulog_utmpx structure that are valid for the command in question. This means that strings like "shutdown" or "~" are not visible to the user anymore. - Rename UTXF_* to UTXI_*, indicating the indexation, instead of using the `antique' filename. If we ever get rid of utmp, it makes little sense calling it by its old name.
Diffstat (limited to 'usr.sbin/lastlogin')
-rw-r--r--usr.sbin/lastlogin/lastlogin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lastlogin/lastlogin.c b/usr.sbin/lastlogin/lastlogin.c
index 3d3edfb..ef9049f 100644
--- a/usr.sbin/lastlogin/lastlogin.c
+++ b/usr.sbin/lastlogin/lastlogin.c
@@ -60,7 +60,7 @@ main(argc, argv)
usage();
}
- if (ulog_setutxfile(UTXF_LASTLOG, NULL) != 0)
+ if (ulog_setutxfile(UTXI_USER, NULL) != 0)
errx(1, "failed to open lastlog database");
setpassent(1); /* Keep passwd file pointers open */
OpenPOWER on IntegriCloud