Allowing veto files = /blah-blah-blah/ to contain \3 ...

Jeremy Allison jra at samba.org
Fri Apr 30 18:21:17 MDT 2010


On Fri, Apr 30, 2010 at 04:06:28PM -0700, Richard Sharpe wrote:
> Hi,
> 
> In mixed environments (Mac and Windows) you don't want to veto /Icon?/
> because iTunes needs to create files like Icon1 Icon2 etc.
> 
> However, if Mac users copy folders onto a Samba server that have
> customized icons in them, they end up with a file called Icon\r.
> 
> We wanted to veto just these files.
> 
> The following patch allows you to do: veto files = /Icon\r/

Hmmm. This is horrid, but I'm sure it works. Can't you
use talloc_all_string_sub(ctx, buf, "\\r", "\r", 0);
to do the same (look at the use in smbd/chgpasswd.c).

Jeremy.


More information about the samba-technical mailing list