Detection of identical file doesn't work for localhost:

Darren Moffat Darren.Moffat at eng.sun.com
Wed Jan 31 04:32:39 EST 2001


>>(Why on earth would anybody do an "scp localhost:..." in the first place?)
>
>Why? Well, one reason would be to copy from a chroot()ed environment
>back to the real host, of course... Probably not, but it is possible.
>There is no guarentee that localhost:/some/directory is in the same
>filesystem as /some/directory on the current machine as viewed by
>the currently running scp program.

But if that is the case then the reported problem doesn't occur because
the source and destination are different.

A check like this is likely to do more harm than good, just to fix one
or two edge cases where the user did something strange and didn't like
what they got.



--
Darren J Moffat






More information about the openssh-unix-dev mailing list