summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-07-10 20:02:44 +0200
committerStefan Metzmacher <metze@samba.org>2009-07-12 16:55:22 +0200
commit0ba532e1b2dedea3c07fa55631fac0d9a5032fcf (patch)
tree6a6d87e5235679c0380b8470de28513ef5c208a1 /source3/smbd
parentee690df294aab7a738bfec1976a2f015e918db1e (diff)
downloadsamba-0ba532e1b2dedea3c07fa55631fac0d9a5032fcf.tar.gz
samba-0ba532e1b2dedea3c07fa55631fac0d9a5032fcf.tar.bz2
samba-0ba532e1b2dedea3c07fa55631fac0d9a5032fcf.zip
s3:smbd: make smbd_do_qfilepathinfo() non static for use in SMB2
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/globals.h16
-rw-r--r--source3/smbd/trans2.c30
2 files changed, 31 insertions, 15 deletions
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h
index 8163213dd0..725a94a90b 100644
--- a/source3/smbd/globals.h
+++ b/source3/smbd/globals.h
@@ -185,6 +185,22 @@ NTSTATUS smbd_do_locking(struct smb_request *req,
struct smbd_lock_element *locks,
bool *async);
+NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn,
+ TALLOC_CTX *mem_ctx,
+ uint16_t info_level,
+ files_struct *fsp,
+ const struct smb_filename *smb_fname,
+ bool delete_pending,
+ struct timespec write_time_ts,
+ bool ms_dfs_link,
+ struct ea_list *ea_list,
+ int lock_data_count,
+ char *lock_data,
+ uint16_t flags2,
+ unsigned int max_data_bytes,
+ char **ppdata,
+ unsigned int *pdata_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 757e5f5c8b..29abbfe3f5 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -3878,21 +3878,21 @@ static void call_trans2qpipeinfo(connection_struct *conn,
return;
}
-static NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn,
- TALLOC_CTX *mem_ctx,
- uint16_t info_level,
- files_struct *fsp,
- const struct smb_filename *smb_fname,
- bool delete_pending,
- struct timespec write_time_ts,
- bool ms_dfs_link,
- struct ea_list *ea_list,
- int lock_data_count,
- char *lock_data,
- uint16_t flags2,
- unsigned int max_data_bytes,
- char **ppdata,
- unsigned int *pdata_size)
+NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn,
+ TALLOC_CTX *mem_ctx,
+ uint16_t info_level,
+ files_struct *fsp,
+ const struct smb_filename *smb_fname,
+ bool delete_pending,
+ struct timespec write_time_ts,
+ bool ms_dfs_link,
+ struct ea_list *ea_list,
+ int lock_data_count,
+ char *lock_data,
+ uint16_t flags2,
+ unsigned int max_data_bytes,
+ char **ppdata,
+ unsigned int *pdata_size)
{
char *pdata = *ppdata;
char *dstart, *dend;