* [9fans] u9fs query
@ 2003-05-12 21:54 Andrew Simmons
2003-05-12 22:08 ` Russ Cox
2003-05-13 7:47 ` Charles Forsyth
0 siblings, 2 replies; 3+ messages in thread
From: Andrew Simmons @ 2003-05-12 21:54 UTC (permalink / raw)
To: 9fans
In the source I'm looking at for useropen, I see:
case OREAD:
a = R_OK;
...
case OWRITE:
a = R_OK;
and subsequently
if(S_ISDIR(fid->st.st_mode)){
if(a != R_OK){
fprint(2, "attempt by %s to open dir %d\n", fid->u->name, omode);
*ep = Eperm;
return -1;
which seems to indicate that it's ok to open a directory for writing as well
as reading, which I took open(5) to say was not allowed. Could some kind
soul explain? Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] u9fs query
2003-05-12 21:54 [9fans] u9fs query Andrew Simmons
@ 2003-05-12 22:08 ` Russ Cox
2003-05-13 7:47 ` Charles Forsyth
1 sibling, 0 replies; 3+ messages in thread
From: Russ Cox @ 2003-05-12 22:08 UTC (permalink / raw)
To: 9fans
That should be "a = W_OK;".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] u9fs query
2003-05-12 21:54 [9fans] u9fs query Andrew Simmons
2003-05-12 22:08 ` Russ Cox
@ 2003-05-13 7:47 ` Charles Forsyth
1 sibling, 0 replies; 3+ messages in thread
From: Charles Forsyth @ 2003-05-13 7:47 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 25 bytes --]
i'd say it's a mistake.
[-- Attachment #2: Type: message/rfc822, Size: 2161 bytes --]
From: "Andrew Simmons" <andrew.simmons@monitorbm.co.nz>
To: <9fans@cse.psu.edu>
Subject: [9fans] u9fs query
Date: Tue, 13 May 2003 09:54:05 +1200
Message-ID: <049e01c318d1$02194d70$3f00a8c0@MERCURY>
In the source I'm looking at for useropen, I see:
case OREAD:
a = R_OK;
...
case OWRITE:
a = R_OK;
and subsequently
if(S_ISDIR(fid->st.st_mode)){
if(a != R_OK){
fprint(2, "attempt by %s to open dir %d\n", fid->u->name, omode);
*ep = Eperm;
return -1;
which seems to indicate that it's ok to open a directory for writing as well
as reading, which I took open(5) to say was not allowed. Could some kind
soul explain? Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-05-13 7:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-12 21:54 [9fans] u9fs query Andrew Simmons
2003-05-12 22:08 ` Russ Cox
2003-05-13 7:47 ` Charles Forsyth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).