summaryrefslogtreecommitdiff
path: root/lib/libssl
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2006-09-25 18:32:08 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2006-09-25 18:32:08 +0000
commit3b366267b081df04252da39a524cbbd072e56174 (patch)
treef0cc69c1cf4e6da13e43db43d089ac165ee54b7d /lib/libssl
parent2f3cc90b0f0ad6e9904f7a2be7557ef7fef7dbef (diff)
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@
Diffstat (limited to 'lib/libssl')
-rw-r--r--lib/libssl/src/apps/ca.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/apps/ca.c b/lib/libssl/src/apps/ca.c
index 616c3720d21..c6cd4c9aa90 100644
--- a/lib/libssl/src/apps/ca.c
+++ b/lib/libssl/src/apps/ca.c
@@ -832,8 +832,8 @@ bad:
perror(outdir);
goto err;
}
-#ifdef S_IFDIR
- if (!(sb.st_mode & S_IFDIR))
+#ifdef S_ISDIR
+ if (!S_ISDIR(sb.st_mode))
{
BIO_printf(bio_err,"%s need to be a directory\n",outdir);
perror(outdir);