From b4e5b6a284b9b30596da88e0094c1e314a6a90c4 Mon Sep 17 00:00:00 2001 From: gsoares Date: Tue, 29 Dec 2015 19:04:46 +0000 Subject: fix exit status on pledge(2) failure. OK tb@ jsg@ --- usr.bin/diff/diff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/diff/diff.c') 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 @@ -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 -- cgit v1.2.3-59-g8ed1b