summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-07 07:00:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-07 07:00:02 +0000
commitc75ddf962c426441ac6e0c8771227ff7116912fd (patch)
tree250d71ff38b56842c0e79b0c86989fd9484cf363 /usr.bin
parent62738f27fdbf92f43e216c051e0cf6685c835a9c (diff)
tame "stdio rpath". could go crazy and handle the non-filename case,
but i am feeling some fatigue.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/nl/nl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/nl/nl.c b/usr.bin/nl/nl.c
index 2d33967b901..59e3af8ba20 100644
--- 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':