diff options
author | Gleydson Soares <gsoares@cvs.openbsd.org> | 2015-12-29 19:12:57 +0000 |
---|---|---|
committer | Gleydson Soares <gsoares@cvs.openbsd.org> | 2015-12-29 19:12:57 +0000 |
commit | 8a2222baec1436d2495f2d79b21b6056514c76d7 (patch) | |
tree | 86eaabc4d163c4fb83e40c4ae93c1fa03e3171c9 | |
parent | 9a599712be774aa84779847806186fcdc096493c (diff) |
fix exit status on pledge(2) failure.
from jsg@
-rw-r--r-- | usr.bin/rcs/rcsprog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c index 13bf3149ff1..efb21459b9f 100644 --- a/usr.bin/rcs/rcsprog.c +++ b/usr.bin/rcs/rcsprog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsprog.c,v 1.159 2015/10/16 13:37:44 millert Exp $ */ +/* $OpenBSD: rcsprog.c,v 1.160 2015/12/29 19:12:56 gsoares Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -129,7 +129,7 @@ main(int argc, char **argv) int ret, cmd_argc; if (pledge("stdio rpath wpath cpath fattr flock getpw", NULL) == -1) - err(1, "pledge"); + err(2, "pledge"); ret = -1; rcs_optind = 1; |