From fb362daf8d0e3667fe2fa0c91fef7e64c15a19ce Mon Sep 17 00:00:00 2001 From: "Mark M. Hoffman" Date: Sun, 16 Sep 2007 15:47:16 +0000 Subject: [PATCH] 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. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4797 7894878c-1315-0410-8ee3-d5d059ff63e0 --- lib/conf-lex.l | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/lib/conf-lex.l b/lib/conf-lex.l index 9912c026..75832486 100644 --- a/lib/conf-lex.l +++ b/lib/conf-lex.l @@ -74,10 +74,6 @@ FLOAT [[:digit:]]*\.?[[:digit:]]+ NUM 0|([1-9][[:digit:]]*) - /* Only number between 1 and 255, octally represented. */ - -OCTESC (1[0-7]{0,2})|([2-7][0-7]?)|(0[1-7][0-7]?)|(00[1-7]) - %% @@ -311,26 +307,12 @@ ignore{BLANK}* { \\t buffer_add_char("\t"); \\v buffer_add_char("\v"); - /* We can't support \0, this would cause havoc! */ - -\\{OCTESC} { - int res; - sscanf(sensors_yytext+1,"%o",&res); - buffer_add_char(&res); - } - /* Other escapes: just copy the character behind the slash */ \\. { buffer_add_char(&sensors_yytext[1]); } - /* This prevents backing up; it is otherwise purely redundant */ - -\\00 { - buffer_add_char("00"); - } - /* Anything else (including a bare '\' which may be followed by EOF) */ \\ |