fix two bugs writing the output file
commit6fa7d9907e7211f06656b296940aaca1d6b4d1df
authorJoey Hess <joey@kodama.kitenet.net>
Fri, 11 Apr 2008 21:42:38 +0000 (11 17:42 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Fri, 11 Apr 2008 21:42:38 +0000 (11 17:42 -0400)
tree5bfc0e4a8ef397b0cab901494afff0f3c056539c
parentdcb580b3998a19b112004f23298490a34af59fc8
fix two bugs writing the output file

If the output file doesn't exist, the new code was buggy and did not create
it.

Also, the rename could fail (ie, /tmp on another filesystem). So if it
falls fall back to the manual copy.
sponge.c