%U in share name

Todd Pfaff pfaff at edge.cis.mcmaster.ca
Wed Oct 17 12:29:28 GMT 2001

It would be helpful if a log message was generated whenever a %macro is
ignored, indicating why it is being ignored.

Also, something in the release notes about changes like this, if it was an
intended change, would be nice.  From Jerry's response though, it seems 
this was not an intentional change.

On Wed, 17 Oct 2001, Esh, Andrew wrote:

> One thing to be aware of is the expansion of such macros is not always safe,
> which may be the reason this was taken out. I know for a fact that you can't
> use %D domain expansions in the valid users list. (Perhaps that's been fixed
> since I last checked.) The problem is, the space for the name list is
> allocated before the expansion, and is not grown as the size of the list
> grows. Memory is overwritten, and eventually there is a segfault.
> Again this is speculation, but maybe this is the same problem, and the fix
> should remain in place until the expansion code is smart enough to grow the
> buffer.
> -----Original Message-----
> From: Gerald (Jerry) Carter [mailto:jerry at samba.org]
> Sent: Wednesday, October 17, 2001 1:28 PM
> To: Todd Pfaff
> Cc: samba at samba.org; samba-technical at samba.org
> Subject: Re: %U in share name
> On Tue, 16 Oct 2001, Todd Pfaff wrote:
> > Prior to samba-2.2.2 I used the code below to provide NT roaming profiles.
> > This seems to have stopped working in 2.2.2.
> >
> > [global]
> > logon path = \\mmri1001\nt-%U\NTProfile
> ok.  I've reprduced it.  Does look like you cannot
> use %U in service names.  Not sure what change broke
> it.
> Anyone want to fess up?  Probably was me :-)
> I'll look into it some more.
> cheers, jerry
>  ---------------------------------------------------------------------
>  www.samba.org              SAMBA Team              jerry_at_samba.org
>  www.plainjoe.org                                jerry_at_plainjoe.org
>  --"I never saved anything for the swim back." Ethan Hawk in Gattaca--

Todd Pfaff                         \  Email: pfaff at mcmaster.ca
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132                              \  FAX: (905) 528-3773
McMaster University                   \
Hamilton, Ontario, Canada  L8S 4M1     \

More information about the samba mailing list