]> err.no Git - moreutils/commit
more fixes to tempfile writeback
authorJoey Hess <joey@kodama.kitenet.net>
Fri, 11 Apr 2008 22:27:40 +0000 (18:27 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Fri, 11 Apr 2008 22:27:40 +0000 (18:27 -0400)
commita580bbd17850753746d6d1a2b65817edaf4485c9
tree22dc2f7c4f296c19b33471edfcaa491b5a7660ac
parent0595609018095dabd5d1a56cf03ddcc008a9e928
more fixes to tempfile writeback

Avoid overwriting symlinks with the temp file.

When renaming the temp file, restore the original file's permissions after.
sponge.c