mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Skip junk files in include dir
This commit is contained in:
@@ -84,7 +84,11 @@ while(<$fh>) {
|
||||
local @dirs = sort { $a cmp $b } readdir(DIR);
|
||||
closedir(DIR);
|
||||
foreach $f (@dirs) {
|
||||
next if ($f =~ /^\./ || $f =~ /\.rpmsave$/ ||
|
||||
next if ($f =~ /^\./ ||
|
||||
$f =~ /\.rpm(save|orig|new)$/ ||
|
||||
$f =~ /\~$/ ||
|
||||
$f =~ /,v$/ ||
|
||||
$f =~ /\.swp$/ ||
|
||||
$f =~ /\.lock$/);
|
||||
local ($inc, $ilnum, $ifiles) =
|
||||
&get_config("$incfile/$f");
|
||||
|
||||
Reference in New Issue
Block a user