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:
Martin Matuška authored and GitHub committed 2025-09-13 21:36:13 +02:00
commit e1dea559c7
1 file changed
+1 -1
+1 -1
View File
@@ -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) {