app_isdir() cleanup
authorXiaoyin Liu <xiaoyinl@users.noreply.github.com>
Sat, 22 Jul 2017 05:57:27 +0000 (01:57 -0400)
committerAndy Polyakov <appro@openssl.org>
Mon, 31 Jul 2017 10:50:17 +0000 (12:50 +0200)
commite29ae5b356f40f7410d367b25d4e65e0dde0aeef
tree4b5718965b6e8b9d7c2d9f9fcd4b9f9c76b70141
parenta08f26660e0f8d2caf9462219ffea20d9e2c74f2
app_isdir() cleanup

I think it's better to use `GetFileAttributes` to obtain the attributes
of a file than `FindFirstFile`. If the input name contains `*`, this
function should return failure rather than check whether the first match
happens to be a file or a directory.

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/3991)

(cherry picked from commit 5bd051a0dcd4f04bc9ea197f74b34612b3fcca84)
apps/apps.c