smbfs RO messages

Chris Wedgwood (chris@cyphercom.com)
Fri, 21 Nov 1997 18:38:11 +1300


When openning files RO using smbfs on 2.1.65 connect to a share with OR
access:

smb_proc_open: //971101.LOG open failed, error=-13, retrying R/O

I check of the code reveals this in fs/smbfs/proc.s:smb_proc_open.c

mode = read_write;
#if 0
if (!(wish & (O_WRONLY | O_RDWR)))
mode = read_only;
#endif

Removing the `0' constraint fixes things... but I'm curious as to why it was
like this in the first place?

-Chris

P.S.

Here is a really silly patch to fs/smbfs/proc.s. Probably easier to though
to do this by hand.

--- proc.c.orig Fri Nov 21 18:35:47 1997
+++ proc.c Fri Nov 21 18:33:57 1997
@@ -705,7 +705,7 @@
char *p;

mode = read_write;
-#if 0
+#if 1
if (!(wish & (O_WRONLY | O_RDWR)))
mode = read_only;
#endif