diff options
author | Volker Lendecke <vl@samba.org> | 2010-10-24 11:38:22 +0200 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2010-10-24 10:23:28 +0000 |
commit | 09a10750445e92b7813459e8c297ff6340a56800 (patch) | |
tree | 00dd8e6ea06035d995dc316648ba332c6808a6f7 /source3/libsmb | |
parent | 5a17d26e47c1e3478866cbdbc5254eae0fa10f45 (diff) | |
download | samba-09a10750445e92b7813459e8c297ff6340a56800.tar.gz samba-09a10750445e92b7813459e8c297ff6340a56800.tar.bz2 samba-09a10750445e92b7813459e8c297ff6340a56800.zip |
s3: Remove unused cli_get_ea_list_fnum
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Oct 24 10:23:29 UTC 2010 on sn-devel-104
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clifile.c | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 75762f119a..b57cba501c 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -4206,49 +4206,6 @@ bool cli_set_ea_fnum(struct cli_state *cli, uint16_t fnum, const char *ea_name, Get an extended attribute list utility fn. *********************************************************/ -static bool parse_ea_blob(TALLOC_CTX *mem_ctx, const uint8_t *rdata, - size_t rdata_len, - size_t *pnum_eas, struct ea_struct **pea_list); - -static bool cli_get_ea_list(struct cli_state *cli, - uint16_t setup, char *param, unsigned int param_len, - TALLOC_CTX *ctx, - size_t *pnum_eas, - struct ea_struct **pea_list) -{ - unsigned int data_len = 0; - unsigned int rparam_len, rdata_len; - char *rparam=NULL, *rdata=NULL; - bool ret = False; - - *pnum_eas = 0; - if (pea_list) { - *pea_list = NULL; - } - - if (!cli_send_trans(cli, SMBtrans2, - NULL, /* Name */ - -1, 0, /* fid, flags */ - &setup, 1, 0, /* setup, length, max */ - param, param_len, 10, /* param, length, max */ - NULL, data_len, cli->max_xmit /* data, length, max */ - )) { - return False; - } - - if (!cli_receive_trans(cli, SMBtrans2, - &rparam, &rparam_len, - &rdata, &rdata_len)) { - return False; - } - - ret = parse_ea_blob(ctx, (uint8_t *)rdata, rdata_len, pnum_eas, - pea_list); - SAFE_FREE(rparam); - SAFE_FREE(rdata); - return ret; -} - static bool parse_ea_blob(TALLOC_CTX *ctx, const uint8_t *rdata, size_t rdata_len, size_t *pnum_eas, struct ea_struct **pea_list) @@ -4449,25 +4406,6 @@ NTSTATUS cli_get_ea_list_path(struct cli_state *cli, const char *path, return status; } -/********************************************************* - Get an extended attribute list from an fnum. -*********************************************************/ - -bool cli_get_ea_list_fnum(struct cli_state *cli, uint16_t fnum, - TALLOC_CTX *ctx, - size_t *pnum_eas, - struct ea_struct **pea_list) -{ - uint16_t setup = TRANSACT2_QFILEINFO; - char param[6]; - - memset(param, 0, 6); - SSVAL(param,0,fnum); - SSVAL(param,2,SMB_INFO_SET_EA); - - return cli_get_ea_list(cli, setup, param, 6, ctx, pnum_eas, pea_list); -} - /**************************************************************************** Convert open "flags" arg to uint32_t on wire. ****************************************************************************/ |