Share ignore and storing % tokens in a tdb

Nicolas Williams Nicolas.Williams at
Mon Jan 31 15:02:41 GMT 2000

On Mon, Jan 31, 2000 at 08:54:13AM -0500, Nicolas Williams wrote:
> On Mon, Jan 31, 2000 at 08:35:38AM -0500, David Collier-Brown wrote:
> > Nicolas Williams wrote:
> > | Actually, that would be useful: a share ignore parameter. It's value
> > | might be a % token followed by a value such that if it does not
> > match
> > | the token's value the share would be ignored.
> > 
> > 	Cool!  "ignore if = %m bozotron" would be read
> > 	"ignore this share if %m is bozotron", much like
> > 	the perl idiom. The cost would be a parser change
> > 	to skip forward to the beginning of the next section
> > 	and a loadparms.c change to invalidate the current 
> > 	section and clean up any data structures.
> This would be nice... It would cut down on the need for includes.

Actually, there should be a comparison operator there:

	ignore if = %m == bozotron

Or, more generalized, though also requiring more changes:

	condition = if %m == bozotron then ignore-share

There. Does that make smb.conf programmable enough? :) :)

-DISCLAIMER: an automatically appended disclaimer may follow. By posting-
-to a public e-mail mailing list I hereby grant permission to distribute-
-and copy this message.-

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

More information about the samba-technical mailing list