summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Elliott <elliottc@objectcomputing.com>2023-04-25 07:49:24 -0500
committerChad Elliott <elliottc@objectcomputing.com>2023-04-25 07:49:24 -0500
commita5c42a39d3b2263de84290dc2a084fbf3170b406 (patch)
treef7e6f18dbc3efc375b261477ebf228998a24c682
parent307f1fc30267dde08c28d5665716530ce7ff0abd (diff)
downloadMPC-a5c42a39d3b2263de84290dc2a084fbf3170b406.tar.gz
Fixed an issue where a directory, used in a chdir, was assumed to be relative to the current working directory
-rw-r--r--modules/WorkspaceCreator.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/WorkspaceCreator.pm b/modules/WorkspaceCreator.pm
index b8b993f8..fda3e408 100644
--- a/modules/WorkspaceCreator.pm
+++ b/modules/WorkspaceCreator.pm
@@ -1802,7 +1802,8 @@ sub generate_project_files_fork {
}
$self->{'cacheok'} = $cacheok;
- if ($self->cd($dir)) {
+ my $full = "$cwd/$dir";
+ if ($self->cd($full)) {
if ($self->{'cacheok'} && defined $allprojects{$prkey}) {
$files_written = $allprojects{$prkey};
@@ -1840,8 +1841,7 @@ sub generate_project_files_fork {
## Unable to change to the directory.
## We don't restore the state before we leave,
## but that's ok since we will be exiting soon.
- return 0, $creator, $msg;
-
+ return 0, $creator, "Unable to change directory to $full";
}
## Return things to the way they were