From 9e18fdf7cd43a335ab6f613cd108bb6d75a51412 Mon Sep 17 00:00:00 2001 From: Ewgeni Wolowik Date: Wed, 7 Sep 2022 11:02:23 +0200 Subject: Fixed issue #1770: cleanup_pathname deals with network drive paths like \\server\file --- libarchive/archive_write_disk_windows.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libarchive/archive_write_disk_windows.c') diff --git a/libarchive/archive_write_disk_windows.c b/libarchive/archive_write_disk_windows.c index 1b12a299..5e8aeb57 100644 --- a/libarchive/archive_write_disk_windows.c +++ b/libarchive/archive_write_disk_windows.c @@ -2258,6 +2258,9 @@ cleanup_pathname(struct archive_write_disk *a, wchar_t *name) return (ARCHIVE_FAILED); } else p += 4; + /* Network drive path like "\\\\file" */ + } else if (p[0] == L'\\' && p[1] == L'\\') { + p += 2; } /* Skip leading drive letter from archives created -- cgit v1.2.1