artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
209655a
)
tame "stdio rpath". no uid/user resolution happening here.
author
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 14:35:19 +0000
(14:35 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 14:35:19 +0000
(14:35 +0000)
usr.bin/users/users.c
patch
|
blob
|
history
diff --git
a/usr.bin/users/users.c
b/usr.bin/users/users.c
index
f10e336
..
2847815
100644
(file)
--- a/
usr.bin/users/users.c
+++ b/
usr.bin/users/users.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: users.c,v 1.1
1 2014/10/08 04:11:28 doug Exp $
*/
+/* $OpenBSD: users.c,v 1.1
2 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 '?':