summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-06-02 11:31:32 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-06-02 11:31:32 +0000
commit7457642b8c4ad409f2cf8f91e083301ea2440af9 (patch)
treef3c2f65f0671b22da72ea9ff38a13e27ab23ba97 /apps
parentd1e107702bec1015706a95a7ab3b76825e27b83a (diff)
PR: 1937
Submitted by: Mark Phalan <Mark.Phalan@Sun.COM> Reviewed by: steve@openssl.org Fix misuse of st_mode field in struct stat.
Diffstat (limited to 'apps')
-rw-r--r--apps/ca.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/ca.c b/apps/ca.c
index 68516ee9bd..7bd229139e 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -858,8 +858,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);