This isn't just 'ls' -- very similar behavior happens when changing directories. See the below examples:

# paramiko
lftp [EMAIL PROTECTED]@localhost:/> cd /foo
---- checking directory `/foo'
---> sending a packet, length=13, type=17(STAT), id=4
PackUINT32BE(0x0000000D)
PackUINT8(0x11)
PackUINT32BE(0x00000004)
PackUINT32BE(0x00000004)
---> sending a packet, length=15, type=17(STAT), id=5
PackUINT32BE(0x0000000F)
PackUINT8(0x11)
PackUINT32BE(0x00000005)
PackUINT32BE(0x00000006)
<--- got a packet, length=25, type=101(STATUS), id=4
<--- got a packet, length=25, type=101(STATUS), id=5
cd `/foo' [Waiting for response...]

# openssh
lftp [EMAIL PROTECTED]:/tmp> cd /foo
---- checking directory `/foo'
---> sending a packet, length=13, type=17(STAT), id=4
PackUINT32BE(0x0000000D)
PackUINT8(0x11)
PackUINT32BE(0x00000004)
PackUINT32BE(0x00000004)
---> sending a packet, length=15, type=17(STAT), id=5
PackUINT32BE(0x0000000F)
PackUINT8(0x11)
PackUINT32BE(0x00000005)
PackUINT32BE(0x00000006)
<--- got a packet, length=29, type=101(STATUS), id=4
---- status code=2(No such file), message=No such file
cd: Access failed: No such file (/foo)
<--- got a packet, length=29, type=101(STATUS), id=5
---- status code=2(No such file), message=No such file

I'm pretty much stumped here. Ideas?

Reply via email to