From 82a2f45eb728339b72889f8417bcbfadcafa1794 Mon Sep 17 00:00:00 2001 From: Mauronofrio Matarrese Date: Thu, 4 Apr 2019 22:39:12 +0100 Subject: Fix "Install Recovery Ramdisk" of a file which contains a space in the name Change-Id: Ib2b1deee7427d9ac565676068b11982171f7a98d --- partitionmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'partitionmanager.cpp') diff --git a/partitionmanager.cpp b/partitionmanager.cpp index 79068f79d..31e909878 100755 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -3088,7 +3088,7 @@ bool TWPartitionManager::Prepare_Repack(const std::string& Source_Path, const st if (TWFunc::copy_file(Source_Path, destination, 0644)) return false; } - std::string command = "cd " + Temp_Folder_Destination + " && /sbin/magiskboot --unpack -h " + Source_Path; + std::string command = "cd " + Temp_Folder_Destination + " && /sbin/magiskboot --unpack -h '" + Source_Path +"'"; if (TWFunc::Exec_Cmd(command) != 0) { LOGINFO("Error unpacking %s!\n", Source_Path.c_str()); gui_msg(Msg(msg::kError, "unpack_error=Error unpacking image.")); -- cgit v1.2.3