diff options
author | 2015-10-11 17:43:03 +0000 | |
---|---|---|
committer | 2015-10-11 17:43:03 +0000 | |
commit | af1a137a48c2268eba4ec3b0d21a30f973e72eef (patch) | |
tree | d588032b8d13de3a0ac6ba9b37830e9f0c8439e5 | |
parent | reorg code to have an array with all the files used apparent. (diff) | |
download | wireguard-openbsd-af1a137a48c2268eba4ec3b0d21a30f973e72eef.tar.xz wireguard-openbsd-af1a137a48c2268eba4ec3b0d21a30f973e72eef.zip |
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@
-rw-r--r-- | usr.bin/csplit/csplit.c | 4 |
1 files changed, 1 insertions, 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); |