Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/auriamg/macdylibbundler.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Utils.cpp')
-rw-r--r--src/Utils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp
index 564adcf..8651c5f 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -108,7 +108,7 @@ void copyFile(string from, string to)
string override_permission = string(override ? "-f " : "-n ");
// copy file to local directory
- string command = string("cp ") + override_permission + from + string(" ") + to;
+ string command = string("cp ") + override_permission + string("\"") + from + string("\" \"") + to + string("\"");
if( from != to && systemp( command ) != 0 )
{
cerr << "\n\nError : An error occured while trying to copy file " << from << " to " << to << endl;
@@ -116,7 +116,7 @@ void copyFile(string from, string to)
}
// give it write permission
- string command2 = string("chmod +w ") + to;
+ string command2 = string("chmod +w \"") + to + "\"";
if( systemp( command2 ) != 0 )
{
cerr << "\n\nError : An error occured while trying to set write permissions on file " << to << endl;
@@ -169,7 +169,7 @@ int systemp(std::string& cmd)
void changeInstallName(const std::string& binary_file, const std::string& old_name, const std::string& new_name)
{
- std::string command = std::string("install_name_tool -change ") + old_name + " " + new_name + " " + binary_file;
+ std::string command = std::string("install_name_tool -change \"") + old_name + "\" \"" + new_name + "\" \"" + binary_file + "\"";
if( systemp( command ) != 0 )
{
std::cerr << "\n\nError: An error occured while trying to fix dependencies of " << binary_file << std::endl;