"Unexpected directory listing line" with $BLOCK_SIZE (set to human-readable)

Advertisement

bers
Joined:
Posts:
3

"Unexpected directory listing line" with $BLOCK_SIZE (set to human-readable)

Logging in via SCP failed with "Unexpected directory listing line". Output showed that file sizes where shown in human-readable format (e.g., 12K). Indeed, my bash .profile had this line:
export BLOCK_SIZE=human-readable
Commenting out this line fixed the problem.

This could be fixed by WinSCP unsetting $BLOCK_SIZE on login, maybe as part of the aliases and/or national variables. This would be a great addition.

Reply with quote

Advertisement

bers
Joined:
Posts:
3

Thanks! I tested the version you sent me, and it is working fine both without and with BLOCK_SIZE set, both with and without my WinSCP.ini.

Interestingly, I had trouble reproducing the original issue with v 5.21.x at first, even with BLOCK_SIZE set – I was only able to reproduce it once I removed WinSCP.ini, which seems to store something that made it connect regardless of BLOCK_SIZE set. (I wasn't motivated to figure out which part it was.) Anyway, v6 is looking good :)

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum