summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlum <lum@openbsd.org>2013-02-12 20:24:32 +0000
committerlum <lum@openbsd.org>2013-02-12 20:24:32 +0000
commite7db529e51e1d927c49c7dcf73987a138e400409 (patch)
treea552dd0b0d0a3cf970f5ac5a3998ba77de7c9fd8
parentReenable the stack protector code, the last varargs change fixed the issue. (diff)
downloadwireguard-openbsd-e7db529e51e1d927c49c7dcf73987a138e400409.tar.xz
wireguard-openbsd-e7db529e51e1d927c49c7dcf73987a138e400409.zip
Reflect the -f option in last's output. Original diff from Jacob L. Leifman.
Other feedback from Callum Davies and sthen@ ok mpi@ ian@ kettenis@
-rw-r--r--usr.bin/last/last.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/last/last.c b/usr.bin/last/last.c
index 46e27f642dc..818f5145068 100644
--- a/usr.bin/last/last.c
+++ b/usr.bin/last/last.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: last.c,v 1.36 2009/10/27 23:59:39 deraadt Exp $ */
+/* $OpenBSD: last.c,v 1.37 2013/02/12 20:24:32 lum Exp $ */
/* $NetBSD: last.c,v 1.6 1994/12/24 16:49:02 cgd Exp $ */
/*
@@ -407,8 +407,8 @@ wtmp(void)
asctime(gmtime(&total))+11);
}
ct = ctime(&buf[0].ut_time);
- printf("\nwtmp begins %10.10s %*.*s %4.4s\n", ct, timesize, timesize,
- ct + 11, ct + 20);
+ printf("\n%s begins %10.10s %*.*s %4.4s\n", basename(file), ct,
+ timesize, timesize, ct + 11, ct + 20);
}
/*