]> wimlib.net Git - wimlib/commit - src/win32_apply.c
win32_apply.c: handle target directory more like other directories
authorEric Biggers <ebiggers3@gmail.com>
Sun, 15 Mar 2015 01:22:22 +0000 (20:22 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 15 Mar 2015 01:41:29 +0000 (20:41 -0500)
commit277d7798255f0f5f63b5659cee55eba9d9d1054d
treef8f58c1be6cb22170e668d1430b844244aae8f3c
parent3a8c277a01de54d7a35078e66072671e8242af67
win32_apply.c: handle target directory more like other directories

If we don't send the target directory through the same code path as the
other directories, we can run into several inconsistencies such as empty
named data streams not being created and compression attributes not being
set or cleared.

We actually *can* send the target directory through create_directory() as
long as we don't ask for DELETE access (in case it's the current working
directory) or set its short name (since that doesn't make sense anyway).
src/win32_apply.c