From: David Mulder Date: Fri, 11 Mar 2022 19:20:52 +0000 (-0700) Subject: smbd: Move nttrans.c -> smb1_nttrans.c X-Git-Tag: tevent-0.12.0~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=feb6c593789478c00bfd2fa6580cc78b5fcd8975;p=thirdparty%2Fsamba.git smbd: Move nttrans.c -> smb1_nttrans.c nttrans.c now contians only smb1 code Signed-off-by: David Mulder Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 5cfaef92387..3a014923b5f 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -672,15 +672,6 @@ int vfs_set_ntquota(files_struct *fsp, enum SMB_QUOTA_TYPE qtype, struct dom_sid int vfs_get_user_ntquota_list(files_struct *fsp, SMB_NTQUOTA_LIST **qt_list); void *init_quota_handle(TALLOC_CTX *mem_ctx); -/* The following definitions come from smbd/nttrans.c */ - -void reply_ntcreate_and_X(struct smb_request *req); -struct ea_list *read_nttrans_ea_list(TALLOC_CTX *ctx, const char *pdata, size_t data_size); -void reply_ntcancel(struct smb_request *req); -void reply_ntrename(struct smb_request *req); -void reply_nttrans(struct smb_request *req); -void reply_nttranss(struct smb_request *req); - /* The following definitions come from smbd/smb2_nttrans.c */ NTSTATUS set_sd(files_struct *fsp, struct security_descriptor *psd, diff --git a/source3/smbd/nttrans.c b/source3/smbd/smb1_nttrans.c similarity index 100% rename from source3/smbd/nttrans.c rename to source3/smbd/smb1_nttrans.c diff --git a/source3/smbd/smb1_nttrans.h b/source3/smbd/smb1_nttrans.h new file mode 100644 index 00000000000..fa2f195a997 --- /dev/null +++ b/source3/smbd/smb1_nttrans.h @@ -0,0 +1,26 @@ +/* + Unix SMB/CIFS implementation. + SMB NT transaction handling + Copyright (C) Jeremy Allison 1994-2007 + Copyright (C) Stefan (metze) Metzmacher 2003 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + +void reply_ntcreate_and_X(struct smb_request *req); +struct ea_list *read_nttrans_ea_list(TALLOC_CTX *ctx, const char *pdata, size_t data_size); +void reply_ntcancel(struct smb_request *req); +void reply_ntrename(struct smb_request *req); +void reply_nttrans(struct smb_request *req); +void reply_nttranss(struct smb_request *req); diff --git a/source3/smbd/smbd.h b/source3/smbd/smbd.h index 2b63da4a798..73e325251dc 100644 --- a/source3/smbd/smbd.h +++ b/source3/smbd/smbd.h @@ -33,6 +33,7 @@ struct dptr_struct; #include "smbd/smb1_aio.h" #include "smbd/smb1_ipc.h" #include "smbd/smb1_negprot.h" +#include "smbd/smb1_nttrans.h" #endif struct trans_state { diff --git a/source3/wscript_build b/source3/wscript_build index 5335a24cfea..8eb95c9642c 100644 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -606,6 +606,7 @@ if bld.CONFIG_SET('WITH_SMB1SERVER'): smbd/smb1_aio.c smbd/smb1_ipc.c smbd/smb1_negprot.c + smbd/smb1_nttrans.c ''' else: SMB1_SOURCES = '' @@ -625,7 +626,6 @@ bld.SAMBA3_LIBRARY('smbd_base', smbd/share_access.c smbd/fileio.c smbd/smb2_ipc.c - smbd/nttrans.c smbd/smb2_nttrans.c smbd/pipes.c smbd/reply.c