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:48:28 +0000 (12:48 +0200)
commit5bd051a0dcd4f04bc9ea197f74b34612b3fcca84
tree1e16bfb34d4114cf81035795c27453fe1a354734
parent57c835aca765355298706dee407753aeb88b22f0
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)
apps/apps.c