Handle relative paths to records files

This commit is contained in:
Jamie Cameron
2008-08-05 00:48:19 +00:00
parent 197fd1b668
commit 973dad4b78

View File

@@ -18,7 +18,7 @@ $dom = $zone->{'name'};
$desc = &ip6int_to_net(&arpa_to_ip($dom));
if ($zone->{'file'}) {
@st = stat(&make_chroot($zone->{'file'}));
@st = stat(&make_chroot(&absolute_path($zone->{'file'})));
$lasttrans = &text('slave_last', @st && $st[7] ? &make_date($st[9])
: $text{'slave_never'});
}