Detection of identical file doesn't work for localhost:

Damien Miller djm at mindrot.org
Sun Feb 4 11:54:56 EST 2001


On Sat, 3 Feb 2001, Christian Kurz wrote:

> I have no idea and and that's why I asked here, if it would be possible
> to detect localhost and then invoke the other method for doing a
> file-copy. But as Damien pointed out, there far to many things to test
> for, so I also agree that openssh shouldn't be changed. 

Another way around the problem would be to make scp write to a temporary
file and then do a rename() as the last step. This would prevent people
from clobbering files.

-d

-- 
| ``We've all heard that a million monkeys banging on | Damien Miller -
| a million typewriters will eventually reproduce the | <djm at mindrot.org>
| works of Shakespeare. Now, thanks to the Internet, / 
| we know this is not true.'' - Robert Wilensky UCB / http://www.mindrot.org







More information about the openssh-unix-dev mailing list