artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d55daa
)
tame "stdio rpath". could go crazy and handle the non-filename case,
author
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 07:00:01 +0000
(07:00 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 07:00:01 +0000
(07:00 +0000)
but i am feeling some fatigue.
usr.bin/nl/nl.c
patch
|
blob
|
history
diff --git
a/usr.bin/nl/nl.c
b/usr.bin/nl/nl.c
index
2d33967
..
59e3af8
100644
(file)
--- a/
usr.bin/nl/nl.c
+++ b/
usr.bin/nl/nl.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: nl.c,v 1.
4 2015/01/21 22:28:09
deraadt Exp $ */
+/* $OpenBSD: nl.c,v 1.
5 2015/10/07 07:00:01
deraadt Exp $ */
/* $NetBSD: nl.c,v 1.11 2011/08/16 12:00:46 christos Exp $ */
/*-
@@
-118,6
+118,9
@@
main(int argc, char *argv[])
(void)setlocale(LC_ALL, "");
+ if (tame("stdio rpath", NULL) == -1)
+ err(1, "tame");
+
while ((c = getopt(argc, argv, "pb:d:f:h:i:l:n:s:v:w:")) != -1) {
switch (c) {
case 'p':