diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-06-02 11:31:32 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-06-02 11:31:32 +0000 |
commit | 7457642b8c4ad409f2cf8f91e083301ea2440af9 (patch) | |
tree | f3c2f65f0671b22da72ea9ff38a13e27ab23ba97 /apps | |
parent | d1e107702bec1015706a95a7ab3b76825e27b83a (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |