diff options
author | Gleydson Soares <gsoares@cvs.openbsd.org> | 2016-01-13 13:13:05 +0000 |
---|---|---|
committer | Gleydson Soares <gsoares@cvs.openbsd.org> | 2016-01-13 13:13:05 +0000 |
commit | a4311b47e4e2a84eeab23badfb7b782dbe38006b (patch) | |
tree | 3523c30b34aab6e395214497ccbc28edd47413e1 /bin | |
parent | 5386e17a73b1ca80debd087040cd38a79a39252f (diff) |
fix exit status on pledge fail, eval here should be 2.
OK tb@
Diffstat (limited to 'bin')
-rw-r--r-- | bin/test/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/test/test.c b/bin/test/test.c index b69d342e3ed..f14624755da 100644 --- a/bin/test/test.c +++ b/bin/test/test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: test.c,v 1.15 2015/10/09 01:37:06 deraadt Exp $ */ +/* $OpenBSD: test.c,v 1.16 2016/01/13 13:13:04 gsoares Exp $ */ /* $NetBSD: test.c,v 1.15 1995/03/21 07:04:06 cgd Exp $ */ /* @@ -159,7 +159,7 @@ main(int argc, char *argv[]) int res; if (pledge("stdio rpath", NULL) == -1) - err(1, "pledge"); + err(2, "pledge"); if (strcmp(__progname, "[") == 0) { if (strcmp(argv[--argc], "]")) |