diff options
author | millert <> | 2015-02-25 20:06:28 +0000 |
---|---|---|
committer | millert <> | 2015-02-25 20:06:28 +0000 |
commit | 076bfca3a28b89878dd08cc21cc45d129c845f5f (patch) | |
tree | eb8e9866fcc648c580375f6ed800ea538fdf95ed /src/usr.bin/openssl/certhash.c | |
parent | 432e1d553bd75841b5b29f1a8008b519d538f765 (diff) | |
download | openbsd-076bfca3a28b89878dd08cc21cc45d129c845f5f.tar.gz openbsd-076bfca3a28b89878dd08cc21cc45d129c845f5f.tar.bz2 openbsd-076bfca3a28b89878dd08cc21cc45d129c845f5f.zip |
No need to use O_DIRECTORY when opening ".", O_RDONLY will suffice.
OK guenther@
Diffstat (limited to 'src/usr.bin/openssl/certhash.c')
-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 | } |