[smbfs]: win2k shares can be browsed
Andrew V. Samoilov
kai at cmail.ru
Tue Oct 16 07:19:16 UTC 2001
Hi!
I applied patch from samba-2.0.7 patchset which
fixes some smbfs vs Win2k problem.
After this patch win2k shares can be browsed.
ChangeLog:
* samba/libsmb/clientgen.c (cli_RNetShareEnum): Fix Win2k
"out of server memory" error. From samba 2.0.7 patchset.
diff -u vfs/samba/libsmb/clientgen.c vfs/samba/libsmb/clientgen.c
--- vfs/samba/libsmb/clientgen.c Thu Nov 11 13:36:03 1999
+++ vfs/samba/libsmb/clientgen.c Wed Apr 26 09:06:54 2000
@@ -618,12 +618,16 @@
pstrcpy(p,"B13BWz");
p = skip_string(p,1);
SSVAL(p,0,1);
- SSVAL(p,2,0xFFFF);
+ /*
+ * Win2k needs a *smaller* buffer than 0xFFFF here -
+ * it returns "out of server memory" with 0xFFFF !!! JRA.
+ */
+ SSVAL(p,2,0xFFE0);
p += 4;
if (cli_api(cli,
param, PTR_DIFF(p,param), 1024, /* Param, length, maxlen */
- NULL, 0, 0xFFFF, /* data, length, maxlen */
+ NULL, 0, 0xFFE0, /* data, length, maxlen - Win2k needs a small buffer here too ! */
&rparam, &rprcnt, /* return params, length */
&rdata, &rdrcnt)) /* return data, length */
{
More information about the mc-devel
mailing list