summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-10-24 11:21:56 +0200
committerVolker Lendecke <vl@samba.org>2010-10-24 11:39:30 +0200
commit5a17d26e47c1e3478866cbdbc5254eae0fa10f45 (patch)
tree26370419b6470e73722c73b8737c73d0080da1e4 /source3/libsmb
parentc095809c0464cd174e0993d8c32434d6f3733342 (diff)
downloadsamba-5a17d26e47c1e3478866cbdbc5254eae0fa10f45.tar.gz
samba-5a17d26e47c1e3478866cbdbc5254eae0fa10f45.tar.bz2
samba-5a17d26e47c1e3478866cbdbc5254eae0fa10f45.zip
s3: Replace cli_qfileinfo_test with a call to cli_qfileinfo
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clirap.c55
1 files changed, 0 insertions, 55 deletions
diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c
index 17311ddb4e..6af3d15315 100644
--- a/source3/libsmb/clirap.c
+++ b/source3/libsmb/clirap.c
@@ -1280,61 +1280,6 @@ NTSTATUS cli_qpathinfo_basic(struct cli_state *cli, const char *name,
}
/****************************************************************************
- Send a qfileinfo call.
-****************************************************************************/
-
-bool cli_qfileinfo_test(struct cli_state *cli, uint16_t fnum, int level, char **poutdata, uint32 *poutlen)
-{
- unsigned int data_len = 0;
- unsigned int param_len = 0;
- uint16 setup = TRANSACT2_QFILEINFO;
- char param[4];
- char *rparam=NULL, *rdata=NULL;
-
- *poutdata = NULL;
- *poutlen = 0;
-
- /* if its a win95 server then fail this - win95 totally screws it
- up */
- if (cli->win95)
- return False;
-
- param_len = 4;
-
- SSVAL(param, 0, fnum);
- SSVAL(param, 2, level);
-
- if (!cli_send_trans(cli, SMBtrans2,
- NULL, /* name */
- -1, 0, /* fid, flags */
- &setup, 1, 0, /* setup, length, max */
- param, param_len, 2, /* param, length, max */
- NULL, data_len, cli->max_xmit /* data, length, max */
- )) {
- return False;
- }
-
- if (!cli_receive_trans(cli, SMBtrans2,
- &rparam, &param_len,
- &rdata, &data_len)) {
- return False;
- }
-
- *poutdata = (char *)memdup(rdata, data_len);
- if (!*poutdata) {
- SAFE_FREE(rdata);
- SAFE_FREE(rparam);
- return False;
- }
-
- *poutlen = data_len;
-
- SAFE_FREE(rdata);
- SAFE_FREE(rparam);
- return True;
-}
-
-/****************************************************************************
Send a qpathinfo SMB_QUERY_FILE_ALT_NAME_INFO call.
****************************************************************************/