scp: Problem when source and destination are identical

Florian Weimer Florian.Weimer at RUS.Uni-Stuttgart.DE
Fri May 18 00:54:27 EST 2001


If the source and destination file are identical, the receiving scp
truncates the file.  On the sending end, read() returns 0, and garbage
is sent instead of actual data, and the receiving end puts it into the
file, which at least confuses the users.

-- 
Florian Weimer 	                  Florian.Weimer at RUS.Uni-Stuttgart.DE
University of Stuttgart           http://cert.uni-stuttgart.de/
RUS-CERT                          +49-711-685-5973/fax +49-711-685-5898



More information about the openssh-unix-dev mailing list