From 0aaec66139adc1f24ca5426a8fd181480e5955c3 Mon Sep 17 00:00:00 2001 From: pcanterino <> Date: Fri, 22 Apr 2005 17:35:31 +0000 Subject: [PATCH] Fixed a really strange bug only occuring on Windows systems --- modules/Tool.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/Tool.pm b/modules/Tool.pm index 4efefe5..96370c1 100644 --- a/modules/Tool.pm +++ b/modules/Tool.pm @@ -6,7 +6,7 @@ package Tool; # Some shared sub routines # # Author: Patrick Canterino -# Last modified: 2005-04-21 +# Last modified: 2005-04-22 # use strict; @@ -36,6 +36,8 @@ use base qw(Exporter); multi_string upper_path); +use Carp qw(croak); + # check_path() # # Check if a virtual path is above a virtual root directory @@ -63,6 +65,7 @@ sub check_path($$) # We extract the last part of the path and create the absolute path my $first = upper_path($path); + $first = File::Spec->canonpath($first); $first = abs_path($first); my $last = file_name($path); -- 2.34.1