Merge pull request #2732 from mmatuska/fix/safe-dir-over-reg-win
win: add complementary safe writes fix for Windows to 27588eba5 (#2477)
This commit is contained in:
1 file changed
+1
-1
@@ -1618,7 +1618,7 @@ restore_entry(struct archive_write_disk *a)
|
||||
(void)clear_nochange_fflags(a);
|
||||
}
|
||||
if ((a->flags & ARCHIVE_EXTRACT_SAFE_WRITES) &&
|
||||
S_ISREG(st_mode)) {
|
||||
S_ISREG(a->mode)) {
|
||||
int fd = la_mktemp(a);
|
||||
|
||||
if (fd == -1) {
|
||||
|
||||
Reference in new issue
Block a user