From: Stefan Metzmacher Date: Fri, 5 Jun 2009 08:46:30 +0000 (+0200) Subject: s3:smbd: add support for SMB2 Create on IPC$ X-Git-Tag: tdb-1.1.5~267 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6cc5db0f201029789c0deac13d3f5e1f7c6efac;p=thirdparty%2Fsamba.git s3:smbd: add support for SMB2 Create on IPC$ metze --- diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index 89790730453..5d379ec3a5b 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -214,7 +214,23 @@ static NTSTATUS smbd_smb2_create(struct smbd_smb2_request *req, } if (IS_IPC(smbreq->conn)) { - return NT_STATUS_NOT_IMPLEMENTED; + const char *pipe_name = in_name; + + if (!lp_nt_pipe_support()) { + return NT_STATUS_ACCESS_DENIED; + } + + /* Strip \\ off the name. */ + if (pipe_name[0] == '\\') { + pipe_name++; + } + + status = open_np_file(smbreq, pipe_name, &result); + if (!NT_STATUS_IS_OK(status)) { + return status; + } + info = 0; + ZERO_STRUCT(sbuf); } else if (CAN_PRINT(smbreq->conn)) { status = file_new(smbreq, smbreq->conn, &result); if(!NT_STATUS_IS_OK(status)) {