[BACK]Return to parse.lex CVS log [TXT][DIR] Up to [local] / src / usr.bin / sudo

Diff for /src/usr.bin/sudo/Attic/parse.lex between version 1.14 and 1.15

version 1.14, 2007/09/05 23:55:57 version 1.15, 2008/07/31 16:44:03
Line 55 
Line 55 
 #include <sudo.tab.h>  #include <sudo.tab.h>
   
 #ifndef lint  #ifndef lint
 __unused static const char rcsid[] = "$Sudo: parse.lex,v 1.132.2.7 2007/08/25 02:48:01 millert Exp $";  __unused static const char rcsid[] = "$Sudo: parse.lex,v 1.132.2.10 2008/06/26 11:53:50 millert Exp $";
 #endif /* lint */  #endif /* lint */
   
 #undef yywrap           /* guard against a yywrap macro */  #undef yywrap           /* guard against a yywrap macro */
Line 151 
Line 151 
 }  }
   
 <INSTR>{  <INSTR>{
     \\\n[[:blank:]]*    {      \\[[:blank:]]*\n[[:blank:]]*        {
                             /* Line continuation char followed by newline. */                              /* Line continuation char followed by newline. */
                             ++sudolineno;                              ++sudolineno;
                             LEXTRACE("\n");                              LEXTRACE("\n");
Line 163 
Line 163 
                             return(WORD);                              return(WORD);
                         }                          }
   
     ([^\"\n]|\\\")+     {      \\                  {
                               LEXTRACE("BACKSLASH ");
                               append(yytext, yyleng);
                           }
   
       ([^\"\n\\]|\\\")+   {
                             LEXTRACE("STRBODY ");                              LEXTRACE("STRBODY ");
                             /* Push back line continuation char if present */  
                             if (yyleng > 2 && yytext[yyleng - 1] == '\\' &&  
                                 isspace((unsigned char)yytext[yyleng - 2]))  
                                 yyless(yyleng - 1);  
                             append(yytext, yyleng);                              append(yytext, yyleng);
                         }                          }
 }  }
Line 326 
Line 327 
                             if (strcmp(yytext, "ALL") == 0) {                              if (strcmp(yytext, "ALL") == 0) {
                                 LEXTRACE("ALL ");                                  LEXTRACE("ALL ");
                                 return(ALL);                                  return(ALL);
                             } else {  
                                 fill(yytext, yyleng);  
                                 LEXTRACE("ALIAS ");  
                                 return(ALIAS);  
                             }                              }
   #ifdef HAVE_SELINUX
                               /* XXX - restrict type/role to initial state */
                               if (strcmp(yytext, "TYPE") == 0) {
                                   LEXTRACE("TYPE ");
                                   return(TYPE);
                               }
                               if (strcmp(yytext, "ROLE") == 0) {
                                   LEXTRACE("ROLE ");
                                   return(ROLE);
                               }
   #endif /* HAVE_SELINUX */
                               fill(yytext, yyleng);
                               LEXTRACE("ALIAS ");
                               return(ALIAS);
                         }                          }
   
 <GOTRUNAS>(#[0-9-]+|{WORD}) {  <GOTRUNAS>(#[0-9-]+|{WORD}) {

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15