From db101f70294bca3ebe9eaa1f16aaae8cd872d2e4 Mon Sep 17 00:00:00 2001 From: doug <> Date: Sat, 17 Oct 2015 15:00:11 +0000 Subject: Exit if a pledge call fails in non-interactive mode. ok semarie@ --- src/usr.bin/openssl/crl2p7.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/usr.bin/openssl/crl2p7.c') diff --git a/src/usr.bin/openssl/crl2p7.c b/src/usr.bin/openssl/crl2p7.c index 3935bd18e0..5ce4e97c60 100644 --- a/src/usr.bin/openssl/crl2p7.c +++ b/src/usr.bin/openssl/crl2p7.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crl2p7.c,v 1.5 2015/10/10 22:28:51 doug Exp $ */ +/* $OpenBSD: crl2p7.c,v 1.6 2015/10/17 15:00:11 doug Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -170,8 +170,10 @@ crl2pkcs7_main(int argc, char **argv) int ret = 1; if (single_execution) { - if (pledge("stdio rpath wpath cpath", NULL) == -1) + if (pledge("stdio rpath wpath cpath", NULL) == -1) { perror("pledge"); + exit(1); + } } memset(&crl2p7_config, 0, sizeof(crl2p7_config)); -- cgit v1.2.3-55-g6feb