edit: Clean up tmp file handling in virt-edit.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 28 Oct 2010 10:58:56 +0000 (11:58 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 28 Oct 2010 14:16:14 +0000 (15:16 +0100)
commit2f52a40bed27e49972b957f1ef3276c422d5ef96
treec8fb73643b27b17f70448c6e042843694586b9dc
parentf93b234401093c63e67f2ffc254f611eee4daf7c
edit: Clean up tmp file handling in virt-edit.

This was probably not a security issue, but this change
makes the code cleaner by not opening the tmp file twice.

Also be more careful about error checking in close syscall.
tools/virt-edit