diff options
| author | dsl <dsl@NetBSD.org> | 2006-04-05 20:24:38 +0000 |
|---|---|---|
| committer | dsl <dsl@NetBSD.org> | 2006-04-05 20:24:38 +0000 |
| commit | 2ab52a9ec86b501e3418cf907c34fdcd56aaa914 (patch) | |
| tree | 265fc172c333e4278b08101360ca271555a3b3e1 /libexec | |
| parent | 91dcd880bccc885b3e59910025dc255cfafb66ea (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
