diff options
author | ed <ed@FreeBSD.org> | 2009-12-26 22:36:05 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-12-26 22:36:05 +0000 |
commit | 2062dc2dbfc1a90fe4ab19dac08bf244edcdd6b9 (patch) | |
tree | 58bea5a34619877eb8346d2fea79c60e9cb0def0 /usr.bin | |
parent | dfcc7c385f2569bde1e4bd62a5c78a40b557608f (diff) | |
download | FreeBSD-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.bin')
-rw-r--r-- | usr.bin/who/who.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c index 5db4f88..bd8b68c 100644 --- a/usr.bin/who/who.c +++ b/usr.bin/who/who.c @@ -109,7 +109,7 @@ main(int argc, char *argv[]) usage(); if (*argv != NULL) { - if (ulog_setutxfile(UTXF_UTMP, *argv) != 0) + if (ulog_setutxfile(UTXI_TTY, *argv) != 0) err(1, "%s", *argv); } |