aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_l.l
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-09-14 07:42:16 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-09-14 07:42:16 +0000
commitb6e7c4e65d272da844a282081084a2bb81c8938e (patch)
tree85f76a0e11341077b80635c2615e946f561f22f7 /rcfile_l.l
parent04e293356472e13c75636bec4947c1c564339d3b (diff)
downloadfetchmail-b6e7c4e65d272da844a282081084a2bb81c8938e.tar.gz
fetchmail-b6e7c4e65d272da844a282081084a2bb81c8938e.tar.bz2
fetchmail-b6e7c4e65d272da844a282081084a2bb81c8938e.zip
Disable l;iteralization after `password' when it's an authentication
type value. svn path=/trunk/; revision=2555
Diffstat (limited to 'rcfile_l.l')
-rw-r--r--rcfile_l.l11
1 files changed, 6 insertions, 5 deletions
diff --git a/rcfile_l.l b/rcfile_l.l
index 2a51ff06..f5c89b7c 100644
--- a/rcfile_l.l
+++ b/rcfile_l.l
@@ -19,7 +19,7 @@ int prc_lineno = 1;
%a 4000
%p 3000
-%s NAME
+%s NAME AUTHKIND
%%
@@ -74,10 +74,11 @@ proto(col)? { return PROTOCOL; }
service { return SERVICE; }
port { return PORT; }
interval { return INTERVAL; }
-auth(enticate)? { return AUTHENTICATE; }
-kerberos(_v)?4 { return KERBEROS4; }
-kerberos(_v)?5 { return KERBEROS5; }
-kerberos { return KERBEROS; }
+auth(enticate)? { BEGIN(AUTHKIND); return AUTHENTICATE; }
+kerberos(_v)?4 { BEGIN(0); return KERBEROS4; }
+kerberos(_v)?5 { BEGIN(0); return KERBEROS5; }
+kerberos { BEGIN(0); return KERBEROS; }
+<AUTHKIND>password { BEGIN(0); return PASSWORD; }
timeout { return TIMEOUT;}
envelope { return ENVELOPE; }
qvirtual { return QVIRTUAL; }