Explorar o código

Temporary fix for (re)opening files in lzma archives (thanks, Sam!)

Ryan C. Gordon %!s(int64=16) %!d(string=hai) anos
pai
achega
71fc15fd19
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/archiver_lzma.c

+ 1 - 0
src/archiver_lzma.c

@@ -649,6 +649,7 @@ static fvoid *LZMA_openRead(dvoid *opaque, const char *name, int *fileExists)
     BAIL_IF_MACRO(file == NULL, ERR_NO_SUCH_FILE, NULL);
     BAIL_IF_MACRO(file->folder == NULL, ERR_NOT_A_FILE, NULL);
 
+    file->position = 0;
     file->folder->references++; // Increase refcount for automatic cleanup...
 
     return(file);