summaryrefslogtreecommitdiff
path: root/usr.bin/sdiff
diff options
context:
space:
mode:
authorGleydson Soares <gsoares@cvs.openbsd.org>2015-12-29 19:04:47 +0000
committerGleydson Soares <gsoares@cvs.openbsd.org>2015-12-29 19:04:47 +0000
commit9a7ad9bc671dfac4e4bff7b42c15771dfebe74e0 (patch)
tree986bfd621400a7e24a44a7b54c9c2875af099442 /usr.bin/sdiff
parentfa9be73bc12da2e753d60deda85fd4d5088dfe8d (diff)
fix exit status on pledge(2) failure.
OK tb@ jsg@
Diffstat (limited to 'usr.bin/sdiff')
-rw-r--r--usr.bin/sdiff/sdiff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sdiff/sdiff.c b/usr.bin/sdiff/sdiff.c
index 0f70309a320..59f9515a9db 100644
--- a/usr.bin/sdiff/sdiff.c
+++ b/usr.bin/sdiff/sdiff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdiff.c,v 1.35 2015/10/18 04:18:41 deraadt Exp $ */
+/* $OpenBSD: sdiff.c,v 1.36 2015/12/29 19:04:46 gsoares Exp $ */
/*
* Written by Raymond Lai <ray@cyth.net>.
@@ -165,7 +165,7 @@ main(int argc, char **argv)
*tmp1, *tmp2, *s1, *s2;
if (pledge("stdio rpath wpath cpath proc exec", NULL) == -1)
- err(1, "pledge");
+ err(2, "pledge");
/*
* Process diff flags.