diff options
author | Gleydson Soares <gsoares@cvs.openbsd.org> | 2016-01-25 21:59:37 +0000 |
---|---|---|
committer | Gleydson Soares <gsoares@cvs.openbsd.org> | 2016-01-25 21:59:37 +0000 |
commit | 25e70a88e2ede1045896d262b6ba4b275096bf21 (patch) | |
tree | f9a03d9d31ff5f85fe7483991bc2a870496c9b66 /usr.bin/mesg | |
parent | da1769fe805077d9107dc4ced5409ad1fc251d54 (diff) |
fix exit status on pledge(2) failure.
Diffstat (limited to 'usr.bin/mesg')
-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) { |