On Fri, 2008-10-31 at 19:10 +1100, Paul Wankadia wrote:
> On Fri, Oct 31, 2008 at 7:02 PM, Ian Kent <[EMAIL PROTECTED]> wrote:
> 
> > But I don't get a syntax error for the input that your mail specifies.
> 
> If you make with flex --debug, what output do you see when automount starts?
> 
> Honestly, I have no idea why it scans a DNSTR for me, but as I
> mentioned, I have to work around it by escaping 'c' and 'o' with
> backslashes. When were those lex rules last modified?

Just a stab in the dark but what happens if you apply this patch, just
adding the brackets?

---
--- lib/master_tok.l.orig       2008-10-31 17:33:04.000000000 +0900
+++ lib/master_tok.l    2008-10-31 17:33:34.000000000 +0900
@@ -99,7 +99,7 @@
 DNSERVSTR2     (\/\/[[:alpha:]][[:alnum:]\-.]*(:[0-9]+)?\/)
 DNSERVSTR3     (([[:digit:]]{1,3}\.){3}[[:digit:]]{1,3}(:[0-9]+)?:)
 DNSERVSTR4     (\/\/([[:digit:]]{1,3}\.){3}[[:digit:]]{1,3}(:[0-9]+)?\/)
-DNSERVERSTR    {DNSERVSTR1}|{DNSERVSTR2}|{DNSERVSTR3}|{DNSERVSTR4}
+DNSERVERSTR    ({DNSERVSTR1}|{DNSERVSTR2}|{DNSERVSTR3}|{DNSERVSTR4})
 
 AT_CN          ([cC][[nN])
 AT_NMN         ([nN][iI][sS][Mm][aA][pP][Nn][aA][mM][eE])
@@ -108,7 +108,7 @@
 AT_DC          ([dD][[cC])
 AT_O           ([oO])
 AT_C           ([cC])
-DNATTRSTR      {AT_CN}|{AT_NMN}|{AT_AMN}|{AT_OU}|{AT_DC}|{AT_O}|{AT_C}
+DNATTRSTR      ({AT_CN}|{AT_NMN}|{AT_AMN}|{AT_OU}|{AT_DC}|{AT_O}|{AT_C})
 DNNAMESTR1     ([[:alnum:]_.\- ]+)
 DNNAMESTR2     ([[:alnum:]_.\-]+)
 


_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to