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