]> wimlib.net Git - wimlib/commit - src/extract.c
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)
commit0da20afab9ec25f7b5af83f7507002d467b28685
treea5a5338f0145985175d835d9059a88e7edd01719
parent5105b7f59c609223241f25bd590a9056e459b16a
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.
NEWS
src/extract.c