summaryrefslogtreecommitdiff
path: root/usr/src/common/openssl/apps/ca.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/common/openssl/apps/ca.c')
-rw-r--r--usr/src/common/openssl/apps/ca.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/common/openssl/apps/ca.c b/usr/src/common/openssl/apps/ca.c
index 92af09716f..b40903e239 100644
--- a/usr/src/common/openssl/apps/ca.c
+++ b/usr/src/common/openssl/apps/ca.c
@@ -839,8 +839,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);