Rework troublesome $SIG{__DIE__} construct, to fix Bug 2345
authorWilliam Roberts <williamr@symbian.org>
Wed, 14 Apr 2010 18:01:20 +0100
changeset 315 6325833fc679
parent 314 1a904b49cde0
child 434 c3bf95590c94
Rework troublesome $SIG{__DIE__} construct, to fix Bug 2345
imgtools/imaker/src/imaker.pm
--- a/imgtools/imaker/src/imaker.pm	Mon Mar 29 19:47:59 2010 +0100
+++ b/imgtools/imaker/src/imaker.pm	Wed Apr 14 18:01:20 2010 +0100
@@ -351,7 +351,7 @@
 {
     (my $dir = shift()) =~ s/^>>?(?!>)//;
     my $absdir = "";
-    eval { local $SIG{__DIE__}; $absdir = Cwd::abs_path($dir) };
+    if (-e $dir) {$absdir = Cwd::abs_path($dir) };
     return(PathConv($absdir || File::Spec->rel2abs($dir,
         $dir !~ /^$gWorkdrive/i && $dir =~ /^([a-z]:)/i ? "$1/" : ""), shift(), shift()));
 }