[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#253743: Debian bug #253743: scp foiled when input file grows during transfer



> If data is appended to a file while it's already being scp'ed
> to another location scp appears to ignore the part that was added

I would have said what Matthew has already said: don't do that, then.

I'll also add that's an unfixable limitation in the rcp/scp protocol. When the file is sent, the file details (mode bits, size, name) are sent first, then the file itself. You can see this by running "scp -v", you will see something like "Sending file modes: C0664 27026 filename". As soon as that's sent, the size is set for that file transfer and can't be changed.

Fixing this would require changing the scp protocol, which is not going to happen (speaking for upstream, Debian is obviously free to do as they see fit).

--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.





Reply to: