mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Add API to get a quick list of files in a records file
This commit is contained in:
@ -28,8 +28,12 @@ foreach my $z (@zones) {
|
||||
next if ($tv ne "master" && $tv ne "hint");
|
||||
my $file = &find_value("file", $z->{'members'});
|
||||
next if (!$file);
|
||||
my @recs = &read_zone_file($file, $z->{'value'});
|
||||
push(@rv, map { $_->{'file'} } @recs);
|
||||
if (&is_raw_format_records(&make_chroot($file))) {
|
||||
push(@rv, $file);
|
||||
}
|
||||
else {
|
||||
push(@rv, &files_in_zone_file($file));
|
||||
}
|
||||
}
|
||||
|
||||
return map { &make_chroot($_) } &unique(@rv);
|
||||
|
Reference in New Issue
Block a user