Timezone links can sometimes start with ../

This commit is contained in:
Jamie Cameron
2014-07-30 20:36:01 -07:00
parent 3031c44abd
commit bf8cd8a756

View File

@@ -36,6 +36,7 @@ sub get_current_timezone
local $lnk = readlink(&translate_filename($currentzone_link));
if ($lnk) {
# Easy - it a link
$lnk =~ s/^\.\.//;
$lnk =~ s/$timezones_dir\///;
return $lnk;
}