From eda5f5556f353c2403f846d74104d000c00aff90 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 2 Feb 2010 17:15:18 +0100 Subject: python/tarfile.cc: If only one member is requested, extract just that one. --- python/tarfile.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python') diff --git a/python/tarfile.cc b/python/tarfile.cc index aa9a39f6..6363af0f 100644 --- a/python/tarfile.cc +++ b/python/tarfile.cc @@ -78,6 +78,8 @@ bool PyDirStream::DoItem(Item &Itm, int &Fd) copy_size = Itm.Size; } Fd = -2; + } else { + Fd = -1; } return true; } -- cgit v1.2.3