Shortened sharenames

Joel Hammer Joel at HammersHome.com
Sat Nov 10 20:47:04 GMT 2001


Don't worry about beating me to the finish line on this one.
I wrote one SHORT c program a couple of years ago.
I always favored pascal.
Joel
On Sat, Nov 10, 2001 at 08:42:53PM -0800, August Zajonc wrote:
> 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.




More information about the samba mailing list