summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-08-07 16:32:55 -0700
committerStefan Metzmacher <metze@samba.org>2013-08-15 09:07:07 +0200
commitf8dfc50124e5b5083aa801d9658389dd3fa6698a (patch)
tree1d2d5985c9a5b2b08a5ffee758b0a7e13d6a59f4 /source3
parent3276853e59c2686873baad7c6f9d2665ed6fdd56 (diff)
downloadsamba-f8dfc50124e5b5083aa801d9658389dd3fa6698a.tar.gz
samba-f8dfc50124e5b5083aa801d9658389dd3fa6698a.tar.bz2
samba-f8dfc50124e5b5083aa801d9658389dd3fa6698a.zip
s3:libsmb: Plumb cli_smb2_set_ea_fnum() inside cli_set_ea_fnum().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clifile.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index 2cfe7cd241..d186112d42 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -4365,6 +4365,14 @@ NTSTATUS cli_set_ea_fnum(struct cli_state *cli, uint16_t fnum,
{
uint8_t param[6];
+ if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
+ return cli_smb2_set_ea_fnum(cli,
+ fnum,
+ ea_name,
+ ea_val,
+ ea_len);
+ }
+
memset(param, 0, 6);
SSVAL(param,0,fnum);
SSVAL(param,2,SMB_INFO_SET_EA);