Hello. Seems cool, but is this documented feature of rsync? If this a random bug/undocumented behaviour, relying on it to close CVE is too fragile.
And one more, please check the codepath with scp too. I just tried to truncate file on the source (and destination) hosts and this does not terminate scp. It actually hangs it.
Steps:
fallocate big -l 10G
scp big remote_server: &
truncate big --size 0
ssh remote_server truncate big --size 0
Hello. Seems cool, but is this documented feature of rsync? If this a random bug/undocumented behaviour, relying on it to close CVE is too fragile.
And one more, please check the codepath with scp too. I just tried to truncate file on the source (and destination) hosts and this does not terminate scp. It actually hangs it.
Steps:
fallocate big -l 10G
scp big remote_server: &
truncate big --size 0
ssh remote_server truncate big --size 0
and scp fall down to '-stalled-' mode.