diff options
author | 2015-10-07 14:12:42 +0000 | |
---|---|---|
committer | 2015-10-07 14:12:42 +0000 | |
commit | 23460c7edce26ad2b2d7ee9808ea0266e58624bb (patch) | |
tree | f93f2bdc1b8a475cbbe12cf8d5886fe7ca02a22c /usr.bin/paste/paste.c | |
parent | tame "stdio rpath", which covers readlink() and realpath() (diff) | |
download | wireguard-openbsd-23460c7edce26ad2b2d7ee9808ea0266e58624bb.tar.xz wireguard-openbsd-23460c7edce26ad2b2d7ee9808ea0266e58624bb.zip |
tame "stdio rpath", satisfies the fopen cases
ok semarie
Diffstat (limited to 'usr.bin/paste/paste.c')
-rw-r--r-- | usr.bin/paste/paste.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/paste/paste.c b/usr.bin/paste/paste.c index 8bf14f8b1fb..ee73fbe136d 100644 --- a/usr.bin/paste/paste.c +++ b/usr.bin/paste/paste.c @@ -1,4 +1,4 @@ -/* $OpenBSD: paste.c,v 1.19 2014/11/25 10:20:24 tobias Exp $ */ +/* $OpenBSD: paste.c,v 1.20 2015/10/07 14:12:42 deraadt Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. @@ -57,6 +57,9 @@ main(int argc, char *argv[]) extern int optind; int ch, seq; + if (tame("stdio rpath", NULL) == -1) + err(1, "tame"); + seq = 0; while ((ch = getopt(argc, argv, "d:s")) != -1) { switch (ch) { |