NetShareEnumAll returns truncated strings

Ricardo Jorge ricardo.swat.samba at gmail.com
Mon Jun 27 18:04:44 MDT 2011


Hi.

For some reason I cannot understand NetShareEnumAll (NetShareEnum as well)
is returning truncated strings (names, comments, paths). This code worked
well some time ago.

*Test Code*
http://pastebin.com/UhbtTfkk

*Output (in my case) is: *
netl (should be netlogon)
sys (should be sysvol)
mi (should be mine)
IP (should be IPC$)

*Debug Mode*

I setup Samba4 to run with debug level 10 and I got the following:
http://pastebin.com/wCwHzZF4
The results are not truncated there. I cannot find anyting in py_srvsvc.c
that could cause this.

Any tips?

Thank you,
Ricardo


More information about the samba-technical mailing list