projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e63a252
)
Read while file in at once, to handle includes
author
Jamie Cameron
<jcameron@webmin.com>
Mon, 5 Nov 2007 20:22:12 +0000
(20:22 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Mon, 5 Nov 2007 20:22:12 +0000
(20:22 +0000)
bacula-backup/bacula-backup-lib.pl
patch
|
blob
|
history
diff --git
a/bacula-backup/bacula-backup-lib.pl
b/bacula-backup/bacula-backup-lib.pl
index
600c80a
..
89deb5c
100644
(file)
--- a/
bacula-backup/bacula-backup-lib.pl
+++ b/
bacula-backup/bacula-backup-lib.pl
@@
-66,7
+66,9
@@
if (!defined($config_file_cache{$file})) {
local $parent = { 'members' => \@rv };
local $lnum = 0;
open(CONF, $_[0]) || return undef;
- while(<CONF>) {
+ local @lines = <CONF>;
+ close(CONF);
+ foreach (@lines) {
s/\r|\n//g;
s/#.*$//;
if (/^\s*\@(.*\S)/) {