TODO - DO PROPERLY s3:smbd:smb2: always add O_RDWR to ctdb-reconnect
authorMichael Adam <obnox@samba.org>
Sat, 3 Mar 2012 00:17:55 +0000 (01:17 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 May 2012 16:42:01 +0000 (18:42 +0200)
source3/smbd/smb2_create.c

index c2384118c76371a9319abd684da57b238ed17dbe..bd407fdadf03745c2eca34f31ff058ba625e9133 100644 (file)
@@ -574,7 +574,7 @@ DEBUG(0, ("OBNOX - durable_reconnect: before open file (%s:%s)\n", __location__,
        fsp->fh->fd = SMB_VFS_OPEN(conn,
                                   smb_fname,
                                   fsp,
-                                  e->flags,
+                                  e->flags | O_RDWR, /* TODO: parse open flags */
                                   0 /* mode */);
        if (fsp->fh->fd == -1) {
                status = map_nt_error_from_unix(errno);