Subject: CVS commit: src/usr.bin/compress
To: None <source-changes@NetBSD.org>
From: David Laight <dsl@netbsd.org>
List: source-changes
Date: 04/05/2006 20:24:38
Module Name:	src
Committed By:	dsl
Date:		Wed Apr  5 20:24:38 UTC 2006

Modified Files:
	src/usr.bin/compress: compress.c

Log Message:
Rework the way that files are closed and unlinked on error.
In particular avoid calling fclose() again once it has failed.
Also multply 'oreg' by 2 once we modify the file - so we know when to
unlink it on error.
Fixes Coverty CIDs 2535 and 2536


To generate a diff of this commit:
cvs rdiff -r1.21 -r1.22 src/usr.bin/compress/compress.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.