projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bc25c5
)
Skip junk files in include dir
author
Jamie Cameron
<jcameron@webmin.com>
Fri, 17 Apr 2009 21:22:34 +0000
(21:22 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Fri, 17 Apr 2009 21:22:34 +0000
(21:22 +0000)
logrotate/logrotate-lib.pl
patch
|
blob
|
history
diff --git
a/logrotate/logrotate-lib.pl
b/logrotate/logrotate-lib.pl
index
38cfdc7
..
e37a8c7
100644
(file)
--- a/
logrotate/logrotate-lib.pl
+++ b/
logrotate/logrotate-lib.pl
@@
-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");