summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan <okan@openbsd.org>2014-04-17 14:49:11 +0000
committerokan <okan@openbsd.org>2014-04-17 14:49:11 +0000
commiteb063acfa7731a82464977c7eabb10b42d40b4dd (patch)
tree67ab6df7e333dfa6f278dd08e5ad62a5e9b6ecee
parentSome more long lines. (diff)
downloadwireguard-openbsd-eb063acfa7731a82464977c7eabb10b42d40b4dd.tar.xz
wireguard-openbsd-eb063acfa7731a82464977c7eabb10b42d40b4dd.zip
remove special case for uucp entries.
ok guenther
-rw-r--r--usr.bin/last/last.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/last/last.c b/usr.bin/last/last.c
index 5f5dafa929d..da20fa5d909 100644
--- a/usr.bin/last/last.c
+++ b/usr.bin/last/last.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: last.c,v 1.40 2014/04/17 09:56:09 guenther Exp $ */
+/* $OpenBSD: last.c,v 1.41 2014/04/17 14:49:11 okan Exp $ */
/* $NetBSD: last.c,v 1.6 1994/12/24 16:49:02 cgd Exp $ */
/*
@@ -414,14 +414,11 @@ want(struct utmp *bp, int check)
if (check) {
/*
- * when uucp and ftp log in over a network, the entry in
- * the utmp file is the name plus their process id. See
- * etc/ftpd.c and usr.bin/uucp/uucpd.c for more information.
+ * when ftp logs in over a network, the entry in
+ * the utmp file is the name plus its process id.
*/
if (!strncmp(bp->ut_line, "ftp", sizeof("ftp") - 1))
bp->ut_line[3] = '\0';
- else if (!strncmp(bp->ut_line, "uucp", sizeof("uucp") - 1))
- bp->ut_line[4] = '\0';
}
if (snaptime) /* if snaptime is set, return NO */