Shortened sharenames

August Zajonc ml at augustz.com
Sat Nov 10 20:43:26 GMT 2001


Dang, you beat me to it...

Took a quick glance through using cvsweb, which makes x-refs a pain to
track.... Think the problem might lie with the snippet:

	  for (i=0;i<count;i++,p+=20)
	    {
	      char *sname = p;
	      int type = SVAL(p,14);
	      int comment_offset = IVAL(p,16) & 0xFFFF;
	      char *cmnt = comment_offset?(rdata+comment_offset-converter):"";
	      fn(sname, type, cmnt);
	    }

in cli_RNetShareEnum?

If I get a moment later in the week I'll download the complete source and
poke through it more carefully.

-AZ

> -----Original Message-----
> From: Joel Hammer [mailto:Joel at HammersHome.com]
> Sent: Saturday, November 10, 2001 7:57 PM
> To: August Zajonc; samba at lists.samba.org
> Subject: Re: Shortened sharenames
>
>
> I poked around in the source code. (Which is about as intelligible as
> Chinese to me.)
> In client.c, there is a printf statement, which specifies printing only 15
> characters at most. I changed it to print 30, but, smbclient still only
> prints a 15 character share name, the rest is just padded blanks. I can't
> figure out where the name is determined, likely in some other
> program, but,
> who knows.  So, I am stumped.
> Joel
> On Sat, Nov 10, 2001 at 07:12:31PM -0800, August Zajonc wrote:
> > This does not seem to be true. I of course tried connecting with the
> > truncated share name and received the following response.
> >
> > tree connect failed: ERRDOS - ERRnosuchshare (You specified an
> invalid share
> > name)
> >
> > I'll confess the defense of this silly 'feature' seems lacking in good
> > reasons. What is gained by the sharenames to 13 charachters? On
> the other
> > hand I can think of a NUMBER of reasons why simply displaying
> the sharename
> > is the proper response without doing "fancy" things like shortening it.
> >
> > I've tried with -dA to see if I can get the rest of the share name to no
> > avail.
> >
> > Thanks for your help, but I'm still unclear and why this doesn't simply
> > display the full share name and avoid this mess.
> >
> > -AZ
> >
> >
> > > -----Original Message-----
> > > From: Joel Hammer [mailto:Joel at HammersHome.com]
> > > Sent: Saturday, November 10, 2001 5:13 PM
> > > To: August Zajonc; samba at lists.samba.org
> > > Subject: Re: Shortened sharenames
> > >
> > >
> > > It doesn't seem to matter how long you make the share name. It
> > > only uses the
> > > first 13 or so characters. How is this a problem?
> > > Joel
> > > On Sat, Nov 10, 2001 at 04:42:17PM -0800, August Zajonc wrote:
> > > > Doing a little shell scripting with smbclient and noticed that
> > > >
> > > > smbclient -N -L host
> > > >
> > > > only displays the first 13 charachters of the sharename.
> > > >
> > > > Since that is totally crippled feel like I must be missing something
> > > > obvious, but can't track it down. Any pointers on getting FULL
> > > sharenames
> > > > using smbclient?
> > > >
> > > > Thanks for the help
> > > >
> > > > - AZ
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > To unsubscribe from this list go to the following URL and read the
> > > > instructions:  http://lists.samba.org/mailman/listinfo/samba
> > >
>





More information about the samba mailing list