Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.1 /scripts/checkconfig.pl

Filename:/scripts/checkconfig.pl
Lines Added:5
Lines Deleted:0
Also changed in: (Previous) 2.4.1-pre12  2.4.1-pre11  2.4.1-pre10  2.4.1-pre9  2.4.1-pre8  2.4.1-pre6 
(Following) 2.4.4-ac8  2.4.4-ac9  2.4.4-ac10  2.4.4-ac11  2.4.4-ac12  2.4.4-ac13 

Location
[  2.4.1
  [  scripts
     o  checkconfig.pl

Patch

diff -u --recursive --new-file v2.4.0/linux/scripts/checkconfig.pl linux/scripts/checkconfig.pl
--- v2.4.0/linux/scripts/checkconfig.pl   Tue Aug 31 09:33:09 1999
+++ linux/scripts/checkconfig.pl   Mon Jan 15 15:31:19 2001
@@ -14,6 +14,7 @@
 
     # Initialize variables.
     my $fInComment   = 0;
+    my $fInString    = 0;
     my $fUseConfig   = 0;
     my $iLinuxConfig = 0;
     my %configList   = ();
@@ -23,6 +24,10 @@
    # Strip comments.
    $fInComment && (s+^.*?\*/+ +o ? ($fInComment = 0) : next);
    m+/\*+o && (s+/\*.*?\*/+ +go, (s+/\*.*$+ +o && ($fInComment = 1)));
+
+   # Strip strings.
+   $fInString && (s+^.*?"+ +o ? ($fInString = 0) : next);
+   m+"+o && (s+".*?"+ +go, (s+".*$+ +o && ($fInString = 1)));
 
    # Pick up definitions.
    if ( m/^\s*#/o )


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.