Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.6.0
-
None
Description
When "-p" is specified to preserve the file mode, modification time and access time it will cause a scp client to hang indefinately because the T header is never acknowledged. This is aside from not supporting the flag entirely.
When it is specified the "T<mtime> 0 <atime> 0" is sent first, followed by the usual Cmmmm <length> <filename>. The switch statement @ line 148 never dealt with the T coming in, as a result, it will keep continuing reading the data and eventually readAck(true) and return -1. This causes the scp client (from cygwin and linux) to hang because it was never acknowledged.