summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorotto <>2006-09-25 18:32:07 +0000
committerotto <>2006-09-25 18:32:07 +0000
commit32b7f8facfc3eef6ff29db6ca435b5843cb02ab4 (patch)
tree2b6bbedd8af276609ae4e7729704a7e948657f2a
parentef21d54c7ef3086090860a6d7fec498a4812e05f (diff)
downloadopenbsd-32b7f8facfc3eef6ff29db6ca435b5843cb02ab4.tar.gz
openbsd-32b7f8facfc3eef6ff29db6ca435b5843cb02ab4.tar.bz2
openbsd-32b7f8facfc3eef6ff29db6ca435b5843cb02ab4.zip
Use S_IS* macros insted of masking with S_IF* flags. The latter may
have multiple bits set, which lead to surprising results. Spotted by Paul Stoeber. ok djm@
-rw-r--r--src/lib/libssl/src/apps/ca.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/src/apps/ca.c b/src/lib/libssl/src/apps/ca.c
index 616c3720d2..c6cd4c9aa9 100644
--- a/src/lib/libssl/src/apps/ca.c
+++ b/src/lib/libssl/src/apps/ca.c
@@ -832,8 +832,8 @@ bad:
832 perror(outdir); 832 perror(outdir);
833 goto err; 833 goto err;
834 } 834 }
835#ifdef S_IFDIR 835#ifdef S_ISDIR
836 if (!(sb.st_mode & S_IFDIR)) 836 if (!S_ISDIR(sb.st_mode))
837 { 837 {
838 BIO_printf(bio_err,"%s need to be a directory\n",outdir); 838 BIO_printf(bio_err,"%s need to be a directory\n",outdir);
839 perror(outdir); 839 perror(outdir);