=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lastcomm/lastcomm.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- src/usr.bin/lastcomm/lastcomm.c 2015/03/15 00:41:28 1.21 +++ src/usr.bin/lastcomm/lastcomm.c 2015/10/07 14:05:07 1.22 @@ -1,4 +1,4 @@ -/* $OpenBSD: lastcomm.c,v 1.21 2015/03/15 00:41:28 millert Exp $ */ +/* $OpenBSD: lastcomm.c,v 1.22 2015/10/07 14:05:07 deraadt Exp $ */ /* $NetBSD: lastcomm.c,v 1.9 1995/10/22 01:43:42 ghudson Exp $ */ /* @@ -68,6 +68,9 @@ double delta; int ch; char *acctfile; + + if (tame("stdio rpath getpw", NULL) == -1) + err(1, "tame"); acctfile = _PATH_ACCT; while ((ch = getopt(argc, argv, "f:")) != -1)