xebialabs/overthere

SSH_SCP assumes that ls output is on last line

Closed this issue · 0 comments

For SSH_SCP connections, Overthere parses the output of an ls command to determine the existence, type, length, etc. of files. This algorithm always parses the last line (so that it skips header introduced by sshd, sudo, etc.) but on some systems additional lines are printed after the output of ls.

This can be fixed by trying to parse ALL lines of the ls output, starting from the last, and checking which ones can be parsed.