exports file comment patch
authorJamie Cameron <jcameron@webmin.com>
Tue, 28 Aug 2007 17:19:08 +0000 (17:19 +0000)
committerJamie Cameron <jcameron@webmin.com>
Tue, 28 Aug 2007 17:19:08 +0000 (17:19 +0000)
exports/exports-lib.pl

index bd2208c..64c84fe 100644 (file)
@@ -29,7 +29,10 @@ while($line = <EXP>) {
                local $active = !$1;
                local $dir = $2;
                local $rest = $3;
-               next if ($dir =~ /^$config{'exports_file'}/);
+                if ($dir =~ /^$config{'exports_file'}/) {
+                       $lnum++;
+                       next;
+                               }
                $pos = 0;
                while($rest =~ /^([^\s+\(\)]*)\(([^\)]*)\)\s*(.*)$/ ||
                      $rest =~ /^([^\s+\(\)]+)\s*()(.*)$/) {