summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2006-04-05 20:24:38 +0000
committerdsl <dsl@NetBSD.org>2006-04-05 20:24:38 +0000
commit2ab52a9ec86b501e3418cf907c34fdcd56aaa914 (patch)
tree265fc172c333e4278b08101360ca271555a3b3e1 /libexec
parent91dcd880bccc885b3e59910025dc255cfafb66ea (diff)
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
Diffstat (limited to 'libexec')
0 files changed, 0 insertions, 0 deletions