diff options
author | 2015-12-29 19:04:46 +0000 | |
---|---|---|
committer | 2015-12-29 19:04:46 +0000 | |
commit | b4e5b6a284b9b30596da88e0094c1e314a6a90c4 (patch) | |
tree | 399faa403aba8c9b17a4b64d9d19dc531a559d78 /usr.bin/patch/patch.c | |
parent | Tweak previous by de-indenting label and replacing remaining continues (diff) | |
download | wireguard-openbsd-b4e5b6a284b9b30596da88e0094c1e314a6a90c4.tar.xz wireguard-openbsd-b4e5b6a284b9b30596da88e0094c1e314a6a90c4.zip |
fix exit status on pledge(2) failure.
OK tb@ jsg@
Diffstat (limited to 'usr.bin/patch/patch.c')
-rw-r--r-- | usr.bin/patch/patch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c index 63df8d43218..2011fbd42f8 100644 --- a/usr.bin/patch/patch.c +++ b/usr.bin/patch/patch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: patch.c,v 1.61 2015/11/11 02:52:46 deraadt Exp $ */ +/* $OpenBSD: patch.c,v 1.62 2015/12/29 19:04:46 gsoares Exp $ */ /* * patch - a program to apply diffs to original files @@ -150,7 +150,7 @@ main(int argc, char *argv[]) if (pledge("stdio rpath wpath cpath tmppath fattr", NULL) == -1) { perror("pledge"); - exit(1); + my_exit(2); } setvbuf(stdout, NULL, _IOLBF, 0); |