diff options
author | Gleydson Soares <gsoares@cvs.openbsd.org> | 2015-11-28 01:17:13 +0000 |
---|---|---|
committer | Gleydson Soares <gsoares@cvs.openbsd.org> | 2015-11-28 01:17:13 +0000 |
commit | 137a26375e32a1547bce1905399283137f5b325e (patch) | |
tree | e122beae7091089630f69336addd05db8088962a /usr.bin | |
parent | 8250637f1eb25b94bf5b72c3ef37db1b81884a17 (diff) |
fix exit status on pledge(2) error, where it should be >1
OK millert@ deraadt@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/grep/grep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/grep/grep.c b/usr.bin/grep/grep.c index f790e1d5d7e..907246caa5d 100644 --- a/usr.bin/grep/grep.c +++ b/usr.bin/grep/grep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grep.c,v 1.54 2015/10/09 01:37:07 deraadt Exp $ */ +/* $OpenBSD: grep.c,v 1.55 2015/11/28 01:17:12 gsoares Exp $ */ /*- * Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav @@ -239,7 +239,7 @@ main(int argc, char *argv[]) const char *errstr; if (pledge("stdio rpath", NULL) == -1) - err(1, "pledge"); + err(2, "pledge"); SLIST_INIT(&patfilelh); switch (__progname[0]) { |