summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-07-13 12:05:34 +0200
committerStefan Metzmacher <metze@samba.org>2009-07-13 14:13:06 +0200
commited99bf7317fccdb13e832e98f389486443f9fd48 (patch)
treec6439670a50c37040082e9b9173fe93e4c095ece
parent2a92139a1ca8b2c1950f6ca32255b8fcfdeefff6 (diff)
downloadsamba-ed99bf7317fccdb13e832e98f389486443f9fd48.tar.gz
samba-ed99bf7317fccdb13e832e98f389486443f9fd48.tar.bz2
samba-ed99bf7317fccdb13e832e98f389486443f9fd48.zip
s3:smbd: make smbd_do_qfsinfo() non static for use in SMB2 GetInfo
metze
-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 109c29a1ae..cd3e054d1a 100644
--- a/source3/smbd/globals.h
+++ b/source3/smbd/globals.h
@@ -210,6 +210,15 @@ NTSTATUS smbd_do_setfilepathinfo(connection_struct *conn,
char **ppdata, int total_data,
int *ret_data_size);
+NTSTATUS smbd_do_qfsinfo(connection_struct *conn,
+ TALLOC_CTX *mem_ctx,
+ uint16_t info_level,
+ SMB_STRUCT_STAT st,
+ uint16_t flags2,
+ unsigned int max_data_bytes,
+ char **ppdata,
+ int *ret_data_len);
+
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 2ee3938aec..4dd0375067 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -2687,14 +2687,14 @@ static void samba_extended_info_version(struct smb_extended_info *extended_info)
"%s", samba_version_string());
}
-static NTSTATUS smbd_do_qfsinfo(connection_struct *conn,
- TALLOC_CTX *mem_ctx,
- uint16_t info_level,
- SMB_STRUCT_STAT st,
- uint16_t flags2,
- unsigned int max_data_bytes,
- char **ppdata,
- int *ret_data_len)
+NTSTATUS smbd_do_qfsinfo(connection_struct *conn,
+ TALLOC_CTX *mem_ctx,
+ uint16_t info_level,
+ SMB_STRUCT_STAT st,
+ uint16_t flags2,
+ unsigned int max_data_bytes,
+ char **ppdata,
+ int *ret_data_len)
{
char *pdata, *end_data;
int data_len = 0, len;