NetShareEnumAll returns truncated strings

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


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*

*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:
The results are not truncated there. I cannot find anyting in py_srvsvc.c
that could cause this.

Any tips?

Thank you,

More information about the samba-technical mailing list