From d593eea8260a4c0cfe896db102a2c6fe69d225e0 Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 7 Oct 2015 14:05:07 +0000 Subject: [PATCH] tame "stdio rpath getpw". getpw is for user_from_uid(), which is a libc cache on top of the getpw* functions. ok semarie, who didn't spot the getpw need :) --- usr.bin/lastcomm/lastcomm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.bin/lastcomm/lastcomm.c b/usr.bin/lastcomm/lastcomm.c index 94f107393be..b4843dc160c 100644 --- a/usr.bin/lastcomm/lastcomm.c +++ b/usr.bin/lastcomm/lastcomm.c @@ -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 $ */ /* @@ -69,6 +69,9 @@ main(int argc, char *argv[]) int ch; char *acctfile; + if (tame("stdio rpath getpw", NULL) == -1) + err(1, "tame"); + acctfile = _PATH_ACCT; while ((ch = getopt(argc, argv, "f:")) != -1) switch(ch) { -- 2.20.1