From 4166d193531e99cb4ab86dce607024067251523e Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Thu, 7 Feb 2019 19:11:24 +0000 Subject: Remove rpath from pledge when only stdin is used. ok schwarze@ --- usr.bin/cut/cut.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/cut/cut.c b/usr.bin/cut/cut.c index c6be16ffe0e..162896d109e 100644 --- a/usr.bin/cut/cut.c +++ b/usr.bin/cut/cut.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cut.c,v 1.25 2018/07/13 08:51:14 krw Exp $ */ +/* $OpenBSD: cut.c,v 1.26 2019/02/07 19:11:23 tobias Exp $ */ /* $NetBSD: cut.c,v 1.9 1995/09/02 05:59:23 jtc Exp $ */ /* @@ -142,7 +142,7 @@ main(int argc, char *argv[]) } } else { - if (pledge("stdio rpath", NULL) == -1) + if (pledge("stdio", NULL) == -1) err(1, "pledge"); fcn(stdin, "stdin"); -- cgit v1.2.3