summaryrefslogtreecommitdiffstats
path: root/bin/expr/expr.c
diff options
context:
space:
mode:
authorgsoares <gsoares@openbsd.org>2015-12-29 19:06:16 +0000
committergsoares <gsoares@openbsd.org>2015-12-29 19:06:16 +0000
commit9b7f4c1792a0c72d6eafd3fc684c39984d407df2 (patch)
treea100b960b1f1f1cee7143ffbf751e110d9dce27d /bin/expr/expr.c
parentfix exit status on pledge(2) failure. (diff)
downloadwireguard-openbsd-9b7f4c1792a0c72d6eafd3fc684c39984d407df2.tar.xz
wireguard-openbsd-9b7f4c1792a0c72d6eafd3fc684c39984d407df2.zip
fix exit status on pledge(2) failure.
OK tb@ jsg@
Diffstat (limited to 'bin/expr/expr.c')
-rw-r--r--bin/expr/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/expr/expr.c b/bin/expr/expr.c
index d65b239ad66..d0adf0520bd 100644
--- a/bin/expr/expr.c
+++ b/bin/expr/expr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: expr.c,v 1.22 2015/10/09 01:37:06 deraadt Exp $ */
+/* $OpenBSD: expr.c,v 1.23 2015/12/29 19:06:16 gsoares Exp $ */
/* $NetBSD: expr.c,v 1.3.6.1 1996/06/04 20:41:47 cgd Exp $ */
/*
@@ -502,7 +502,7 @@ main(int argc, char *argv[])
(void) setlocale(LC_ALL, "");
if (pledge("stdio", NULL) == -1)
- err(1, "pledge");
+ err(2, "pledge");
if (argc > 1 && !strcmp(argv[1], "--"))
argv++;