diff options
| author | doug <> | 2015-10-17 15:00:11 +0000 | 
|---|---|---|
| committer | doug <> | 2015-10-17 15:00:11 +0000 | 
| commit | db101f70294bca3ebe9eaa1f16aaae8cd872d2e4 (patch) | |
| tree | 9f56dde9b92f4c14124c4eab1e2457907ad59f71 /src/usr.bin/openssl/certhash.c | |
| parent | c93eb1877de5865e80d306506ac0af05c8ac5bde (diff) | |
| download | openbsd-db101f70294bca3ebe9eaa1f16aaae8cd872d2e4.tar.gz openbsd-db101f70294bca3ebe9eaa1f16aaae8cd872d2e4.tar.bz2 openbsd-db101f70294bca3ebe9eaa1f16aaae8cd872d2e4.zip  | |
Exit if a pledge call fails in non-interactive mode.
ok semarie@
Diffstat (limited to '')
| -rw-r--r-- | src/usr.bin/openssl/certhash.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/certhash.c b/src/usr.bin/openssl/certhash.c index bd0ac54ecf..70aa7b9931 100644 --- a/src/usr.bin/openssl/certhash.c +++ b/src/usr.bin/openssl/certhash.c  | |||
| @@ -650,8 +650,10 @@ certhash_main(int argc, char **argv) | |||
| 650 | int i, cwdfd, ret = 0; | 650 | int i, cwdfd, ret = 0; | 
| 651 | 651 | ||
| 652 | if (single_execution) { | 652 | if (single_execution) { | 
| 653 | if (pledge("stdio rpath wpath cpath", NULL) == -1) | 653 | if (pledge("stdio rpath wpath cpath", NULL) == -1) { | 
| 654 | perror("pledge"); | 654 | perror("pledge"); | 
| 655 | exit(1); | ||
| 656 | } | ||
| 655 | } | 657 | } | 
| 656 | 658 | ||
| 657 | memset(&certhash_config, 0, sizeof(certhash_config)); | 659 | memset(&certhash_config, 0, sizeof(certhash_config)); | 
