From 0569f883d81f07685c85bdba45955655a0e56263 Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 7 Oct 2015 14:35:19 +0000 Subject: [PATCH] tame "stdio rpath". no uid/user resolution happening here. --- usr.bin/users/users.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.bin/users/users.c b/usr.bin/users/users.c index f10e336d023..2847815d174 100644 --- a/usr.bin/users/users.c +++ b/usr.bin/users/users.c @@ -1,4 +1,4 @@ -/* $OpenBSD: users.c,v 1.11 2014/10/08 04:11:28 doug Exp $ */ +/* $OpenBSD: users.c,v 1.12 2015/10/07 14:35:19 deraadt Exp $ */ /* $NetBSD: users.c,v 1.5 1994/12/20 15:58:19 jtc Exp $ */ /* @@ -53,6 +53,9 @@ main(int argc, char *argv[]) struct utmp utmp; int ch; + if (tame("stdio rpath", NULL) == -1) + err(1, "tame"); + while ((ch = getopt(argc, argv, "")) != -1) switch(ch) { case '?': -- 2.20.1