From b6e7c4e65d272da844a282081084a2bb81c8938e Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 14 Sep 1999 07:42:16 +0000 Subject: Disable l;iteralization after `password' when it's an authentication type value. svn path=/trunk/; revision=2555 --- rcfile_l.l | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'rcfile_l.l') 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; } +password { BEGIN(0); return PASSWORD; } timeout { return TIMEOUT;} envelope { return ENVELOPE; } qvirtual { return QVIRTUAL; } -- cgit v1.2.3