From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Thu, 29 Sep 2005 10:18:21 -0400 From: Russ Cox To: "Anselm R. Garbe" , Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] 9P reading directory contents In-Reply-To: <89d1e7b8050929040246dbda80@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <89d1e7b8050929040246dbda80@mail.gmail.com> Cc: Topicbox-Message-UUID: 918f02f4-ead0-11e9-9d60-3106f5b1d025 > 1) Topen with root fid and Tread with root fid > This worked as expected Good. > 2) Just Tread with root fid > This worked also the same, but I didn't expected that it is possible > to read directory contents without preparing the fid for I/O through > Topen. Not good. > Anyone can tell me if this is intended and why? It's not intended. It works because acme assumes it is talking to an honest client, one who would never do (2). Other servers do more sanity checking. Try fossil or the ones based on lib9p. Russ