You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds code to convert Windows style path "" to "/" when writing an entry.
#if defined(_WIN32) && !defined(__CYGWIN__)
/* Make sure the path separators in pahtname, hardlink and symlink
* are all slash '/', not the Windows path separator '\'. */
l->entry = __la_win_entry_in_posix_pathseparator(entry);
if (l->entry == entry)
l->entry = archive_entry_clone(entry);
#else
Which looks fine. However, if a charset conversion is required, l->entry will later be overwrited by these code
if (sconv != NULL) {
...
if (archive_entry_pathname_l(entry, &p, &len, sconv) != 0) { ... }
if (len > 0)
archive_entry_set_pathname(l->entry, p);
Suggested fix:
Change the entry in archive_entry_pathname_l(entry, &p, &len, sconv) to l->entry (or zip->entry in latest version)
The text was updated successfully, but these errors were encountered:
This commit adds code to convert Windows style path "" to "/" when writing an entry.
Which looks fine. However, if a charset conversion is required,
l->entry
will later be overwrited by these codeSuggested fix:
Change the
entry
inarchive_entry_pathname_l(entry, &p, &len, sconv)
tol->entry
(orzip->entry
in latest version)The text was updated successfully, but these errors were encountered: