K 10 svn:author V 8 kientzle K 8 svn:date V 27 2009-03-07T02:09:21.661511Z K 7 svn:log V 121 Merge r658 from libarchive.googlecode.com: Only flush and close the file if it was actually opened. Test for this case. END