Re: File size zero after decrypting with wrong certificate
Brought to you by:
thesun
From: Shachar S. <sh...@sh...> - 2008-07-22 05:41:15
|
Thomas Constans wrote: > > Wouldnot it be better to be warned by rsyncrypto in case we decrypt > files "in place", overwriting existing ones ? > > maybe rsyncrypto should refuse to overwrite existing files, unless a > --force flag is given ? > > I may be able to work on such a patch. > > I'm now working on making rsyncrypto use a safe rewrite procedure in the best Unix tradition - create a temporary file and then run over the original one with a move operation. This will provide atomic replacement on Unix and almost atomic on Windows. Shachar |