From 71fc15fd19e4760fbb26cd6b0e3105f270be38c3 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 21 Jun 2009 17:37:47 -0400 Subject: [PATCH] Temporary fix for (re)opening files in lzma archives (thanks, Sam!) --- src/archiver_lzma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/archiver_lzma.c b/src/archiver_lzma.c index 675b9b4c..0552b0c5 100644 --- a/src/archiver_lzma.c +++ b/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);