]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Always return paths that use '/' as path separator, even on Windows.
authorTim Kientzle <kientzle@gmail.com>
Wed, 29 Jun 2011 04:43:11 +0000 (00:43 -0400)
committerTim Kientzle <kientzle@gmail.com>
Wed, 29 Jun 2011 04:43:11 +0000 (00:43 -0400)
SVN-Revision: 3442

libarchive/archive_read_support_format_rar.c

index 42816f0cc621ad918967d4e38017be73864198cc..850e40b6a679c562180d07674c7ceec05f7e5d66 100644 (file)
@@ -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)