RAP bug: Not truncating names to 12 characters.
a.bokovoy at sam-solutions.net
Thu Jan 15 13:21:07 GMT 2004
On Thu, Jan 15, 2004 at 12:32:27AM -0600, Christopher R. Hertel wrote:
> I got an indirect bug report and I've just reproduced it against the
> latest CVS. Yes, I'll file a report. In the mean time, here's the deal:
> Windows 9x and Me use the old RAP calls. In particular, they use
> NetShareEnum() RAP call to retrieve share names. NetShareEnum() has a
> built-in share name limit of 12 bytes. If you send a NetShareEnum()
> request to a W2K server that has a share named "verylongsharename" that
> share won't be listed.
> What I'm seeing from the latest CVS is that the name "verylongshare" is
> returned and displayed (by W98 in this case). There are two problems with
> the above name:
> 1) It's truncated, so it's not the correct share name and the share
> cannot be accessed.
Same with smbclient. It does display them but can't access. It also has
bug in that displayed share name is cropped:
d_printf("\t%-15.15s%-10.10s%s\n", name, typestr, comment);
/ Alexander Bokovoy
Samba Team http://www.samba.org/
ALT Linux Team http://www.altlinux.org/
Midgard Project Ry http://www.midgard-project.org/
More information about the samba-technical