Fix from matt.zinkevicius@hp.com to stop files being created on read-only
authorJeremy Allison <jra@samba.org>
Thu, 24 Jul 2003 19:10:52 +0000 (19:10 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 24 Jul 2003 19:10:52 +0000 (19:10 +0000)
shares in some circumstances.
Jeremy.
(This used to be commit b826e8c8980d26e932da55384f109f0fe6a124c7)

source3/smbd/open.c

index 5f6ed74f09ee4179d5b3b61de1518b5a48092039..8f8398302365e2ba4e804c118880db4a1d1d81e0 100644 (file)
@@ -125,6 +125,7 @@ static BOOL open_file(files_struct *fsp,connection_struct *conn,
                           directory.
                        */
                        flags &= ~O_CREAT;
+                       local_flags &= ~O_CREAT;
                }
        }