From: deraadt Date: Wed, 7 Oct 2015 06:15:51 +0000 (+0000) Subject: tame "stdio rpath" X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6448dee2354f1ed73570ffd04adb56697cbbfed1;p=openbsd tame "stdio rpath" --- diff --git a/usr.bin/pr/pr.c b/usr.bin/pr/pr.c index be0d5592c3d..a3ab9d8661e 100644 --- a/usr.bin/pr/pr.c +++ b/usr.bin/pr/pr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pr.c,v 1.36 2015/08/20 22:32:41 deraadt Exp $ */ +/* $OpenBSD: pr.c,v 1.37 2015/10/07 06:15:51 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);