diff options
| author | 2016-01-25 21:59:36 +0000 | |
|---|---|---|
| committer | 2016-01-25 21:59:36 +0000 | |
| commit | 5ef079da52be0e65cb19495d902e79eeb7448dd8 (patch) | |
| tree | 70af571ca60a075982ff4ba62173cedf2a12d9d4 | |
| parent | Tweak fields in struct dpme to be more consistent with Apple's info. (diff) | |
| download | wireguard-openbsd-5ef079da52be0e65cb19495d902e79eeb7448dd8.tar.xz wireguard-openbsd-5ef079da52be0e65cb19495d902e79eeb7448dd8.zip | |
fix exit status on pledge(2) failure.
| -rw-r--r-- | usr.bin/mesg/mesg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mesg/mesg.c b/usr.bin/mesg/mesg.c index 925aa470ce1..1d1265e4bd1 100644 --- a/usr.bin/mesg/mesg.c +++ b/usr.bin/mesg/mesg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mesg.c,v 1.10 2015/10/12 20:03:24 deraadt Exp $ */ +/* $OpenBSD: mesg.c,v 1.11 2016/01/25 21:59:36 gsoares Exp $ */ /* $NetBSD: mesg.c,v 1.4 1994/12/23 07:16:32 jtc Exp $ */ /* @@ -53,7 +53,7 @@ main(int argc, char *argv[]) int ch; if (pledge("stdio rpath fattr", NULL) == -1) - err(1, "pledge"); + err(2, "pledge"); while ((ch = getopt(argc, argv, "")) != -1) switch (ch) { |
