diff options
-rw-r--r-- | src/usr.bin/openssl/certhash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/certhash.c b/src/usr.bin/openssl/certhash.c index f274cda8fd..dd0e12f68b 100644 --- a/src/usr.bin/openssl/certhash.c +++ b/src/usr.bin/openssl/certhash.c | |||
@@ -658,7 +658,7 @@ certhash_main(int argc, char **argv) | |||
658 | return (1); | 658 | return (1); |
659 | } | 659 | } |
660 | 660 | ||
661 | if ((cwdfd = open(".", O_DIRECTORY)) == -1) { | 661 | if ((cwdfd = open(".", O_RDONLY)) == -1) { |
662 | perror("failed to open current directory"); | 662 | perror("failed to open current directory"); |
663 | return (1); | 663 | return (1); |
664 | } | 664 | } |