aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/who
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-12-26 22:36:05 +0000
committerEd Schouten <ed@FreeBSD.org>2009-12-26 22:36:05 +0000
commit444999a3147165b2f753184ec723a0c4e27b27bb (patch)
tree58bea5a34619877eb8346d2fea79c60e9cb0def0 /usr.bin/who
parent76e42b3a0cdc3d51b2707fda606103ef897e9bc4 (diff)
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.
Notes
Notes: svn path=/head/; revision=201033
Diffstat (limited to 'usr.bin/who')
-rw-r--r--usr.bin/who/who.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c
index 5db4f8835983..bd8b68c6c202 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);
}