[prev in list] [next in list] [prev in thread] [next in thread] 

List:       9fans
Subject:    Re: [9fans] 9P reading directory contents
From:       Russ Cox <rsc () swtch ! com>
Date:       2005-09-29 14:18:21
Message-ID: ee9e417a0509290718q17d7465epfdccd1ae8e4f63b5 () mail ! gmail ! com
[Download RAW message or body]

> 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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic