From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <049e01c318d1$02194d70$3f00a8c0@MERCURY> From: "Andrew Simmons" To: <9fans@cse.psu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Subject: [9fans] u9fs query Date: Tue, 13 May 2003 09:54:05 +1200 Topicbox-Message-UUID: aa19a360-eacb-11e9-9e20-41e7f4b1d025 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.