]> wimlib.net Git - wimlib/commitdiff
extract.c: Simplify mkdir_if_needed()
authorEric Biggers <ebiggers3@gmail.com>
Sat, 16 Aug 2014 01:01:32 +0000 (20:01 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 16 Aug 2014 01:08:32 +0000 (20:08 -0500)
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.


No differences found