=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/certhash.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- src/usr.bin/openssl/certhash.c 2015/02/25 04:56:41 1.6 +++ src/usr.bin/openssl/certhash.c 2015/02/25 20:06:28 1.7 @@ -658,7 +658,7 @@ return (1); } - if ((cwdfd = open(".", O_DIRECTORY)) == -1) { + if ((cwdfd = open(".", O_RDONLY)) == -1) { perror("failed to open current directory"); return (1); }