diff options
author | Doug Hogan <doug@cvs.openbsd.org> | 2015-10-17 15:00:12 +0000 |
---|---|---|
committer | Doug Hogan <doug@cvs.openbsd.org> | 2015-10-17 15:00:12 +0000 |
commit | e24c2c6c25bf32a518a71a9c39c0a4f90da4af30 (patch) | |
tree | 916e69f318571e8b1636cdecffb02c388437ceea /usr.bin/openssl/pkcs8.c | |
parent | c87479aa11e59661064e8faf6c6fe0a2664baeef (diff) |
Exit if a pledge call fails in non-interactive mode.
ok semarie@
Diffstat (limited to 'usr.bin/openssl/pkcs8.c')
-rw-r--r-- | usr.bin/openssl/pkcs8.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/openssl/pkcs8.c b/usr.bin/openssl/pkcs8.c index 5b54cbfb989..9c620c8619e 100644 --- a/usr.bin/openssl/pkcs8.c +++ b/usr.bin/openssl/pkcs8.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pkcs8.c,v 1.8 2015/10/17 07:51:10 semarie Exp $ */ +/* $OpenBSD: pkcs8.c,v 1.9 2015/10/17 15:00:11 doug Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999-2004. */ @@ -227,8 +227,10 @@ pkcs8_main(int argc, char **argv) int ret = 1; 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); + } } memset(&pkcs8_config, 0, sizeof(pkcs8_config)); |