artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf0edf0
)
tame "stdio rpath", which covers readlink() and realpath()
author
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 14:10:50 +0000
(14:10 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 14:10:50 +0000
(14:10 +0000)
ok semarie
usr.bin/readlink/readlink.c
patch
|
blob
|
history
diff --git
a/usr.bin/readlink/readlink.c
b/usr.bin/readlink/readlink.c
index
83c3a25
..
a5a0445
100644
(file)
--- a/
usr.bin/readlink/readlink.c
+++ b/
usr.bin/readlink/readlink.c
@@
-1,5
+1,5
@@
/*
- * $OpenBSD: readlink.c,v 1.2
5 2009/05/01 10:36:48 chl
Exp $
+ * $OpenBSD: readlink.c,v 1.2
6 2015/10/07 14:10:50 deraadt
Exp $
*
* Copyright (c) 1997
* Kenneth Stailey (hereinafter referred to as the author)
@@
-44,6
+44,9
@@
main(int argc, char *argv[])
int n, ch, nflag = 0, fflag = 0;
extern int optind;
+ if (tame("stdio rpath", NULL) == -1)
+ err(1, "tame");
+
while ((ch = getopt(argc, argv, "fn")) != -1)
switch (ch) {
case 'f':