diff options
author | 2015-11-28 01:17:12 +0000 | |
---|---|---|
committer | 2015-11-28 01:17:12 +0000 | |
commit | c3e02d2149b5d85824279599606f8d77f07d1654 (patch) | |
tree | 49bd8375a15d947ba114e7de38a5c50d9b35031e /usr.bin/grep/grep.c | |
parent | Imporve error messages for the imsg handler code. OK sthen@ (diff) | |
download | wireguard-openbsd-c3e02d2149b5d85824279599606f8d77f07d1654.tar.xz wireguard-openbsd-c3e02d2149b5d85824279599606f8d77f07d1654.zip |
fix exit status on pledge(2) error, where it should be >1
OK millert@ deraadt@
Diffstat (limited to 'usr.bin/grep/grep.c')
-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]) { |