Re: Endless sftp ls listings on Tru64
From: Darren Tucker (dtucker_at_dodgy.net.au)
Date: 05/31/03
- Previous message: tyler: "Re: Another scp passwordless question for Linux boxes"
- In reply to: Lawrence DčOliveiro: "Endless sftp ls listings on Tru64"
- Next in thread: Lawrence DčOliveiro: "Re: Endless sftp ls listings on Tru64"
- Reply: Lawrence DčOliveiro: "Re: Endless sftp ls listings on Tru64"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 31 May 2003 02:34:17 GMT
In article <ldo-A3B778.21361430052003@news.wave.co.nz>,
Lawrence DčOliveiro <ldo@geek-central.gen.new_zealand> wrote:
>I wonder if anyone else has come across this problem: when you sftp to
>an OpenSSH server (version 3.6.1p2) running on Compaq/HP Tru64 UNIX 5.1
>and try the "ls" command on an NFS-mounted volume, either you get an
>endless repetition of the same directory listing over and over, or it
>seems to hang and return nothing at all.
>
>I managed to track down what the problem was: it's a subtle issue with
>the semantics of the readdir call. When readdir returns NULL, that means
>you've reached the end of the directory. However, it's not clear to me
>what's supposed to happen if you call readdir on the same directory
>handle again.
I read the spec [1] and it's not clear what happens in that case either,
but by my reading the behaviour described could be compliant (wierd,
but compliant).
>I came up with a patch to sftp-server.c to work around this, but I'll
>hold off submitting a bug report to the OpenSSH folks until I get an
>opinion from others on where the bug really lies :).
I'd open an OpenSSH bugzilla bug for it.
[1] http://www.opengroup.org/onlinepubs/007904975/functions/readdir.html
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
- Previous message: tyler: "Re: Another scp passwordless question for Linux boxes"
- In reply to: Lawrence DčOliveiro: "Endless sftp ls listings on Tru64"
- Next in thread: Lawrence DčOliveiro: "Re: Endless sftp ls listings on Tru64"
- Reply: Lawrence DčOliveiro: "Re: Endless sftp ls listings on Tru64"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|