Detection of identical file doesn't work for localhost:

Damien Miller djm at mindrot.org
Sun Feb 4 12:59:42 EST 2001


On Sat, 3 Feb 2001, Tim Rice wrote:

> On Sun, 4 Feb 2001, Damien Miller wrote:
> 
> > 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.
> 
> I the file has links, that will break them.

Still better than truncating it :)

-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