summaryrefslogtreecommitdiff
path: root/usr.bin/openssl
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-02-25 20:06:29 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-02-25 20:06:29 +0000
commite701758da88e8181a57581e3a3707f0a5aafbbc1 (patch)
tree7245c274f9bf1b48e04527d85580a39f44cae1f9 /usr.bin/openssl
parentb3abf67caf7c224a8e78d97540281f02ca7f8cd4 (diff)
No need to use O_DIRECTORY when opening ".", O_RDONLY will suffice.
OK guenther@
Diffstat (limited to 'usr.bin/openssl')
-rw-r--r--usr.bin/openssl/certhash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/openssl/certhash.c b/usr.bin/openssl/certhash.c
index f274cda8fdd..dd0e12f68b9 100644
--- a/usr.bin/openssl/certhash.c
+++ b/usr.bin/openssl/certhash.c
@@ -658,7 +658,7 @@ certhash_main(int argc, char **argv)
return (1);
}
- if ((cwdfd = open(".", O_DIRECTORY)) == -1) {
+ if ((cwdfd = open(".", O_RDONLY)) == -1) {
perror("failed to open current directory");
return (1);
}