Detection of identical file doesn't work for localhost:
Christian Kurz
shorty at debian.org
Tue Jan 30 18:27:49 EST 2001
Hi,
I had to notice that scp is able to detect if a file is copied to itself
if you use "scp foo /path/to/foo" or "scp foo .". If you type in "scp
foo localhost:/path/to/foo" it will still overwrite the old version of
foo. Is it possible to change this behaviour of scp?
I only had a quick glance at scp.c and I'm also not a C coder, only
learning C right now, so please give me some hints if I'm wrong. You use
the function "colon" in 984 to check if you should to a remote copy or a
local copy. I think it would be possible to add a check to it to see if
the name of the remote host will be localhost and then also use the
function "tolocal" for doing a local copy instead of calling "toremote".
What do you guys think? Would you please add this feature?
Ciao
Christian
P.S.: Would somebody please change s/debain/debian/ in the ChangeLog to
fix my email-address? Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 242 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20010130/d87d034d/attachment.bin
More information about the openssh-unix-dev
mailing list