Bug 490

Summary: Sudoers tokenizer should use additional states instead of begining of line anchors
Product: Sudo Reporter: Todd C. Miller <Todd.Miller>
Component: SudoersAssignee: Todd C. Miller <Todd.Miller>
Status: NEW ---    
Severity: enhancement    
Priority: low    
Version: 1.8.1   
Hardware: PC   
OS: Other   

Description Todd C. Miller 2011-04-14 15:32:26 MDT
The tokenizer should have separate states for User_Specs, Alias_Specs and Defaults_Entries.  The first token parsed in the INITIAL state should determine which of those states to transition to.  This should help reduce some of the ambiguities.  As a side effect, it should be possible to no longer require that the last line in sudoers have a newline (hello emacs)