From: deraadt Date: Wed, 7 Oct 2015 14:35:19 +0000 (+0000) Subject: tame "stdio rpath". no uid/user resolution happening here. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0569f883d81f07685c85bdba45955655a0e56263;p=openbsd tame "stdio rpath". no uid/user resolution happening here. --- 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 '?':