diff options
author | Chad Elliott <elliottc@objectcomputing.com> | 2023-04-25 07:54:56 -0500 |
---|---|---|
committer | Chad Elliott <elliottc@objectcomputing.com> | 2023-04-25 07:54:56 -0500 |
commit | b8d88174520918fe9dc563b5bc0990fe9d3571fd (patch) | |
tree | 2c1a95ffd829beb9ff86f0d50d85799495560d9d | |
parent | a5c42a39d3b2263de84290dc2a084fbf3170b406 (diff) | |
download | MPC-b8d88174520918fe9dc563b5bc0990fe9d3571fd.tar.gz |
Check that the path is relative before adding the current working directory.
-rw-r--r-- | modules/WorkspaceCreator.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/WorkspaceCreator.pm b/modules/WorkspaceCreator.pm index fda3e408..1bd3f7e6 100644 --- a/modules/WorkspaceCreator.pm +++ b/modules/WorkspaceCreator.pm @@ -1802,7 +1802,7 @@ sub generate_project_files_fork { } $self->{'cacheok'} = $cacheok; - my $full = "$cwd/$dir"; + my $full = $self->path_is_relative($dir) ? "$cwd/$dir" : $dir; if ($self->cd($full)) { if ($self->{'cacheok'} && defined $allprojects{$prkey}) { |