Changeset 4797

Show
Ignore:
Timestamp:
09/16/07 17:47:16 (7 years ago)
Author:
mmh
Message:

The sensors.conf file syntax currently allows for octal escape sequences, which
nobody uses. This feature is not even mentioned in the sensors.conf man page.
Kill it.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/lib/conf-lex.l

    r4273 r4797  
    7575NUM     0|([1-9][[:digit:]]*) 
    7676 
    77  /* Only number between 1 and 255, octally represented. */ 
    78  
    79 OCTESC          (1[0-7]{0,2})|([2-7][0-7]?)|(0[1-7][0-7]?)|(00[1-7]) 
    80  
    8177 
    8278%% 
     
    312308\\v             buffer_add_char("\v"); 
    313309 
    314  /* We can't support \0, this would cause havoc! */ 
    315  
    316 \\{OCTESC}      { 
    317                   int res; 
    318                   sscanf(sensors_yytext+1,"%o",&res); 
    319                   buffer_add_char(&res); 
    320                 } 
    321  
    322310 /* Other escapes: just copy the character behind the slash */ 
    323311 
    324312\\.             { 
    325313                  buffer_add_char(&sensors_yytext[1]); 
    326                 } 
    327  
    328  /* This prevents backing up; it is otherwise purely redundant */ 
    329  
    330 \\00            { 
    331                   buffer_add_char("00"); 
    332314                } 
    333315