summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-02-25 23:46:28 +0000
committerAndrew Tridgell <tridge@samba.org>2001-02-25 23:46:28 +0000
commit96e791eb11e0da4f283d7a6f526d5bd1bfd08d2c (patch)
tree273e9756eff1f7d976c5f40e4494549d27984193 /source3/libsmb
parent57467a9f6002eafdb7d1395a50089c53c37335d9 (diff)
downloadsamba-96e791eb11e0da4f283d7a6f526d5bd1bfd08d2c.tar.gz
samba-96e791eb11e0da4f283d7a6f526d5bd1bfd08d2c.tar.bz2
samba-96e791eb11e0da4f283d7a6f526d5bd1bfd08d2c.zip
use cli_list_old() when negotiating the older protocols
(This used to be commit 735f29319b8d81df203c8ddbcea5349b11f2195d)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clilist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c
index d4cc00d9f3..c30f69a36c 100644
--- a/source3/libsmb/clilist.c
+++ b/source3/libsmb/clilist.c
@@ -178,6 +178,10 @@ int cli_list(struct cli_state *cli,const char *Mask,uint16 attribute,
int param_len, data_len;
uint16 setup;
pstring param;
+
+ if (cli->protocol <= PROTOCOL_LANMAN1) {
+ return cli_list_old(cli, Mask, attribute, fn, state);
+ }
pstrcpy(mask,Mask);