artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cba617e
)
tame "stdio rpath"
author
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 06:15:51 +0000
(06:15 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 06:15:51 +0000
(06:15 +0000)
usr.bin/pr/pr.c
patch
|
blob
|
history
diff --git
a/usr.bin/pr/pr.c
b/usr.bin/pr/pr.c
index
be0d559
..
a3ab9d8
100644
(file)
--- a/
usr.bin/pr/pr.c
+++ b/
usr.bin/pr/pr.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: pr.c,v 1.3
6 2015/08/20 22:32:4
1 deraadt Exp $ */
+/* $OpenBSD: pr.c,v 1.3
7 2015/10/07 06:15:5
1 deraadt Exp $ */
/*-
* Copyright (c) 1991 Keith Muller.
@@
-140,6
+140,9
@@
main(int argc, char *argv[])
{
int ret_val;
+ if (tame("stdio rpath", NULL) == -1)
+ perror("tame");
+
if (signal(SIGINT, SIG_IGN) != SIG_IGN)
(void)signal(SIGINT, terminate);
ret_val = setup(argc, argv);