summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2019-02-07 19:11:24 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2019-02-07 19:11:24 +0000
commit4166d193531e99cb4ab86dce607024067251523e (patch)
treebe67a1bebfbb68fd5311fc5547d919fe5a0b106a
parentc0047dca5ef53ac5e0eb8b499655c871b1c4ac6f (diff)
Remove rpath from pledge when only stdin is used.
ok schwarze@
-rw-r--r--usr.bin/cut/cut.c4
1 files 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");