smb2_create_durable_reconnect: update the pid in the share-mode entry from the smbXsr...
authorMichael Adam <obnox@samba.org>
Mon, 13 Feb 2012 21:59:53 +0000 (22:59 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 May 2012 16:41:45 +0000 (18:41 +0200)
source3/smbd/smb2_create.c

index 108be751d7455ebd16b350277cd0569210ac92d4..4731319c476277c3f309dc4ea4712480e175004e 100644 (file)
@@ -442,6 +442,9 @@ static NTSTATUS smb2_create_durable_reconnect(struct smbXsrv_open *op,
                return NT_STATUS_OBJECT_NAME_NOT_FOUND;
        }
 
+       sharemode_lock->data->share_modes[0].pid =
+               messaging_server_id(op->connection->sconn->msg_ctx);
+
        /*
         * - reopen the file with SMB_VFS_OPEN()
         * - build a files_struct