From: Eric Biggers Date: Sat, 16 Aug 2014 01:01:32 +0000 (-0500) Subject: extract.c: Simplify mkdir_if_needed() X-Git-Tag: v1.7.2~72 X-Git-Url: https://wimlib.net/git/?a=commitdiff_plain;h=0da20afab9ec25f7b5af83f7507002d467b28685;hp=0da20afab9ec25f7b5af83f7507002d467b28685;p=wimlib extract.c: Simplify mkdir_if_needed() Just go ahead and try mkdir(). If it works or it fails with EEXIST, we're done. (On Windows, a quirk also requires a check for EACCES.) This aoids the need to call tstat(), which on Windows was really _wstat(), which is horribly broken: it will fail on paths ending in a slash. ---