Date: Tue, 30 Mar 1999 17:17:32 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Jeff Williams cc: djgpp AT delorie DOT com Subject: Re: tarchange.lst In-Reply-To: <199903301505.JAA09817@darwin.sfbr.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 30 Mar 1999, Jeff Williams wrote: > -: It might be a good idea not to leave an empty file behind, though. > > Would it be sufficient to check the size of `tarchange.lst' before > exiting djtar and delete it if empty? Perhaps I could actually > submit a patch for this. Please do, but be sure to check that non-empty files aren't deleted. It's not trivial to find out the true size of the file which was just been written to, so caveat emptor. Perhaps a better idea is to check whether there's *any* information about changed names inside the data structure maintained by DJTAR, and only open the file if there's actually something to write.