diff options
author | Gleydson Soares <gsoares@cvs.openbsd.org> | 2015-12-29 19:04:47 +0000 |
---|---|---|
committer | Gleydson Soares <gsoares@cvs.openbsd.org> | 2015-12-29 19:04:47 +0000 |
commit | 9a7ad9bc671dfac4e4bff7b42c15771dfebe74e0 (patch) | |
tree | 986bfd621400a7e24a44a7b54c9c2875af099442 /usr.bin/diff | |
parent | fa9be73bc12da2e753d60deda85fd4d5088dfe8d (diff) |
fix exit status on pledge(2) failure.
OK tb@ jsg@
Diffstat (limited to 'usr.bin/diff')
-rw-r--r-- | usr.bin/diff/diff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/diff/diff.c b/usr.bin/diff/diff.c index 3c73530892c..2b075f12c49 100644 --- a/usr.bin/diff/diff.c +++ b/usr.bin/diff/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.64 2015/10/26 12:52:27 tedu Exp $ */ +/* $OpenBSD: diff.c,v 1.65 2015/12/29 19:04:46 gsoares Exp $ */ /* * Copyright (c) 2003 Todd C. Miller <Todd.Miller@courtesan.com> @@ -212,7 +212,7 @@ main(int argc, char **argv) argv += optind; if (pledge("stdio rpath tmppath", NULL) == -1) - err(1, "pledge"); + err(2, "pledge"); /* * Do sanity checks, fill in stb1 and stb2 and call the appropriate |