summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-07-13 09:01:56 +0200
committerStefan Metzmacher <metze@samba.org>2009-07-13 11:18:59 +0200
commit7d735519d7f6a726240dff8cdcae36acd73df48c (patch)
treea175b89ecd8fdf2b88a645bd650ebda1fc9c70c6 /source3/smbd
parentf26a2ca8e43884a62bf5822e7571692870ecc7a1 (diff)
downloadsamba-7d735519d7f6a726240dff8cdcae36acd73df48c.tar.gz
samba-7d735519d7f6a726240dff8cdcae36acd73df48c.tar.bz2
samba-7d735519d7f6a726240dff8cdcae36acd73df48c.zip
s3:smbd: make smbd_do_setfilepathinfo() non static for use in SMB2 SetInfo
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/globals.h9
-rw-r--r--source3/smbd/trans2.c16
2 files changed, 17 insertions, 8 deletions
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h
index 725a94a90b..109c29a1ae 100644
--- a/source3/smbd/globals.h
+++ b/source3/smbd/globals.h
@@ -201,6 +201,15 @@ NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn,
char **ppdata,
unsigned int *pdata_size);
+NTSTATUS smbd_do_setfilepathinfo(connection_struct *conn,
+ struct smb_request *req,
+ TALLOC_CTX *mem_ctx,
+ uint16_t info_level,
+ files_struct *fsp,
+ struct smb_filename *smb_fname,
+ char **ppdata, int total_data,
+ int *ret_data_size);
+
void smbd_server_connection_terminate_ex(struct smbd_server_connection *sconn,
const char *reason,
const char *location);
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 54d873065c..085a0b2acb 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -7055,14 +7055,14 @@ static NTSTATUS smb_posix_unlink(connection_struct *conn,
return close_file(req, fsp, NORMAL_CLOSE);
}
-static NTSTATUS smbd_do_setfilepathinfo(connection_struct *conn,
- struct smb_request *req,
- TALLOC_CTX *mem_ctx,
- uint16_t info_level,
- files_struct *fsp,
- struct smb_filename *smb_fname,
- char **ppdata, int total_data,
- int *ret_data_size)
+NTSTATUS smbd_do_setfilepathinfo(connection_struct *conn,
+ struct smb_request *req,
+ TALLOC_CTX *mem_ctx,
+ uint16_t info_level,
+ files_struct *fsp,
+ struct smb_filename *smb_fname,
+ char **ppdata, int total_data,
+ int *ret_data_size)
{
char *pdata = *ppdata;
SMB_STRUCT_STAT sbuf;