summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-04 17:50:35 -0800
committerLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-04 17:50:35 -0800
commit950a2b0b551d258daad060b9566910ca351d176a (patch)
tree79988dcb4676d8dc54952ba2f29196322278f81c /scripts
parent6aea16664696367eaab3ec2c00922c942a601073 (diff)
v2.4.0.4 -> v2.4.0.5
- ppp UP deadlock attack fix
Diffstat (limited to 'scripts')
-rw-r--r--scripts/checkconfig.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/checkconfig.pl b/scripts/checkconfig.pl
index fc352e436372..8868471fdb6a 100644
--- a/scripts/checkconfig.pl
+++ b/scripts/checkconfig.pl
@@ -14,6 +14,7 @@ foreach $file (@ARGV)
# Initialize variables.
my $fInComment = 0;
+ my $fInString = 0;
my $fUseConfig = 0;
my $iLinuxConfig = 0;
my %configList = ();
@@ -24,6 +25,10 @@ foreach $file (@ARGV)
$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 )
{