[Samba] Reverse Veto Files - let's try again!

Illtud Daniel illtud.daniel at llgc.org.uk
Thu Aug 6 09:36:51 MDT 2009


Charles Marcus wrote:

> It would be much more flexible if the use of the ! as an exception
> designator was allowed for both the Allow and Veto Files options, so for
> the above, you could:
> 
> Allowed Files = !foo.jpg, *.jpg

But now we've gone full circle, and you may as well just
extend the Veto Files syntax to allow:

Veto Files = foo.jpg, !*.jpg, *

To allow the same thing, and save us from introducting another
configuration option (assuming a first match and that matching
anything following a ! is allowed)

*Taking the suggestion that Veto Files takes precedence, and
that Allowed Files implies that all other files are vetoed, then
your requirement would be met by:

Veto Files = foo.jpg
Allowed Files = *.jpg

Although that could be confusing for a user - "why is my bar.gif
file not allowed, it's not in the Veto Files list?"

...unless there's more direction on this, I'll just (try to) implement
* above and somebdy else can throw it all out and do Something
Better. I won't have time to look at this until September at the
earliest.

-- 
Illtud Daniel                                 illtud.daniel at llgc.org.uk
Prif Swyddog Technegol                          Chief Technical Officer
Llyfrgell Genedlaethol Cymru                  National Library of Wales


More information about the samba mailing list