From af1a137a48c2268eba4ec3b0d21a30f973e72eef Mon Sep 17 00:00:00 2001 From: semarie Date: Sun, 11 Oct 2015 17:43:03 +0000 Subject: [PATCH] with the RPATH enforcement, csplit(1) don't work anymore on stdin... the newfile() function used for create files open files in "w+" (O_RDWR), and may occasionally do reading on the file (function toomuch()). ok deraadt@ --- usr.bin/csplit/csplit.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr.bin/csplit/csplit.c b/usr.bin/csplit/csplit.c index fe80da9591d..86b86c7b4ea 100644 --- a/usr.bin/csplit/csplit.c +++ b/usr.bin/csplit/csplit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: csplit.c,v 1.7 2015/10/09 01:37:07 deraadt Exp $ */ +/* $OpenBSD: csplit.c,v 1.8 2015/10/11 17:43:03 semarie Exp $ */ /* $FreeBSD: src/usr.bin/csplit/csplit.c,v 1.9 2004/03/22 11:15:03 tjr Exp $ */ /*- @@ -143,8 +143,6 @@ main(int argc, char *argv[]) if (strcmp(infn, "-") == 0) { infile = stdin; infn = "stdin"; - if (pledge("stdio wpath cpath", NULL) == -1) - err(1, "pledge"); } else if ((infile = fopen(infn, "r")) == NULL) err(1, "%s", infn); -- 2.20.1