diff options
author | 2006-09-25 18:32:07 +0000 | |
---|---|---|
committer | 2006-09-25 18:32:07 +0000 | |
commit | bbbb78a9524047181bd4784defe0a576d453f1f5 (patch) | |
tree | b84e79dbd328753296816f6dff08ef405f965f95 /lib/libssl/src | |
parent | Support some additional HTTP redirect codes. (diff) | |
download | wireguard-openbsd-bbbb78a9524047181bd4784defe0a576d453f1f5.tar.xz wireguard-openbsd-bbbb78a9524047181bd4784defe0a576d453f1f5.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@
Diffstat (limited to 'lib/libssl/src')
-rw-r--r-- | lib/libssl/src/apps/ca.c | 4 |
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); |