From 543f0f34095fd3775350a028db241378f1e4dd80 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/ca.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/usr.bin/openssl/ca.c') diff --git a/src/usr.bin/openssl/ca.c b/src/usr.bin/openssl/ca.c index d97410b556..8727d9c338 100644 --- a/src/usr.bin/openssl/ca.c +++ b/src/usr.bin/openssl/ca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ca.c,v 1.18 2015/10/17 07:51:10 semarie Exp $ */ +/* $OpenBSD: ca.c,v 1.19 2015/10/17 15:00:11 doug Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -287,8 +287,10 @@ ca_main(int argc, char **argv) DB_ATTR db_attr; if (single_execution) { - if (pledge("stdio rpath wpath cpath tty", NULL) == -1) + if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { perror("pledge"); + exit(1); + } } conf = NULL; -- cgit v1.2.3-55-g6feb