From 076bfca3a28b89878dd08cc21cc45d129c845f5f Mon Sep 17 00:00:00 2001 From: millert <> Date: Wed, 25 Feb 2015 20:06:28 +0000 Subject: No need to use O_DIRECTORY when opening ".", O_RDONLY will suffice. OK guenther@ --- src/usr.bin/openssl/certhash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/usr.bin/openssl/certhash.c') 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) return (1); } - if ((cwdfd = open(".", O_DIRECTORY)) == -1) { + if ((cwdfd = open(".", O_RDONLY)) == -1) { perror("failed to open current directory"); return (1); } -- cgit v1.2.3-55-g6feb