From a102276c09d6a32033c480529c475f06248aa510 Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Sun, 3 Sep 2006 04:44:10 +0000 Subject: - fix getfullpath root --- lib/MDV/Distribconf.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/MDV/Distribconf.pm b/lib/MDV/Distribconf.pm index ea77392..0eb5529 100644 --- a/lib/MDV/Distribconf.pm +++ b/lib/MDV/Distribconf.pm @@ -511,6 +511,7 @@ prefixed by the 'root' path. This is a shortcut for: sub getfullpath { my $distrib = shift; my $path = $distrib->getpath(@_) or return; + return $distrib->getpath(undef, 'root') if (($_[1] || '') eq 'root'); return $distrib->getpath(undef, 'root') . '/' . $path; } -- cgit v1.2.1