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/diff/diff.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/diff/diff.c')
-rw-r--r-- | usr.bin/diff/diff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/diff/diff.c b/usr.bin/diff/diff.c index 3c73530892c..2b075f12c49 100644 --- a/usr.bin/diff/diff.c +++ b/usr.bin/diff/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.64 2015/10/26 12:52:27 tedu Exp $ */ +/* $OpenBSD: diff.c,v 1.65 2015/12/29 19:04:46 gsoares Exp $ */ /* * Copyright (c) 2003 Todd C. Miller <Todd.Miller@courtesan.com> @@ -212,7 +212,7 @@ main(int argc, char **argv) argv += optind; if (pledge("stdio rpath tmppath", NULL) == -1) - err(1, "pledge"); + err(2, "pledge"); /* * Do sanity checks, fill in stb1 and stb2 and call the appropriate |