From: Tim Kientzle Date: Wed, 29 Jun 2011 04:43:11 +0000 (-0400) Subject: Always return paths that use '/' as path separator, even on Windows. X-Git-Tag: v3.0.0a~255 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e8912deb951e67346fc3e537d2ee5aaedc98ebb;p=thirdparty%2Flibarchive.git Always return paths that use '/' as path separator, even on Windows. SVN-Revision: 3442 --- diff --git a/libarchive/archive_read_support_format_rar.c b/libarchive/archive_read_support_format_rar.c index 42816f0cc..850e40b6a 100644 --- a/libarchive/archive_read_support_format_rar.c +++ b/libarchive/archive_read_support_format_rar.c @@ -502,12 +502,8 @@ read_header(struct archive_read *a, struct archive_entry *entry, else sconv = archive_string_default_conversion_for_read(&(a->archive)); -#if !((defined(__WIN32__) || defined(_WIN32) || defined(__WIN32)) && !defined(__CYGWIN__)) while ((strp = strchr(filename, '\\')) != NULL) *strp = '/'; -#else - (void)strp; -#endif p += filename_size; if (rar->file_flags & FHD_SALT)