diff options
Diffstat (limited to 'src/usr.bin/openssl/certhash.c')
| -rw-r--r-- | src/usr.bin/openssl/certhash.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/usr.bin/openssl/certhash.c b/src/usr.bin/openssl/certhash.c index a4417a2b26..785f1216ad 100644 --- a/src/usr.bin/openssl/certhash.c +++ b/src/usr.bin/openssl/certhash.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: certhash.c,v 1.19 2021/10/23 08:13:48 tb Exp $ */ | 1 | /* $OpenBSD: certhash.c,v 1.20 2022/11/11 17:07:38 joshua Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014, 2015 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014, 2015 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -653,11 +653,9 @@ certhash_main(int argc, char **argv) | |||
| 653 | int argsused; | 653 | int argsused; |
| 654 | int i, cwdfd, ret = 0; | 654 | int i, cwdfd, ret = 0; |
| 655 | 655 | ||
| 656 | if (single_execution) { | 656 | if (pledge("stdio cpath wpath rpath", NULL) == -1) { |
| 657 | if (pledge("stdio cpath wpath rpath", NULL) == -1) { | 657 | perror("pledge"); |
| 658 | perror("pledge"); | 658 | exit(1); |
| 659 | exit(1); | ||
| 660 | } | ||
| 661 | } | 659 | } |
| 662 | 660 | ||
| 663 | memset(&certhash_config, 0, sizeof(certhash_config)); | 661 | memset(&certhash_config, 0, sizeof(certhash_config)); |
