mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +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");
|
next if ($tv ne "master" && $tv ne "hint");
|
||||||
my $file = &find_value("file", $z->{'members'});
|
my $file = &find_value("file", $z->{'members'});
|
||||||
next if (!$file);
|
next if (!$file);
|
||||||
my @recs = &read_zone_file($file, $z->{'value'});
|
if (&is_raw_format_records(&make_chroot($file))) {
|
||||||
push(@rv, map { $_->{'file'} } @recs);
|
push(@rv, $file);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
push(@rv, &files_in_zone_file($file));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return map { &make_chroot($_) } &unique(@rv);
|
return map { &make_chroot($_) } &unique(@rv);
|
||||||
|
Reference in New Issue
Block a user