9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [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

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).