summaryrefslogtreecommitdiffstats
path: root/twrp-functions.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2013-02-01 16:16:59 +0100
committerDees_Troy <dees_troy@teamw.in>2013-02-01 17:56:34 +0100
commit3f5c4e8dfe4d29d793251379c8f8fdcda2008088 (patch)
tree6394b45633c979378b376e9954ef7062ab1083ae /twrp-functions.cpp
parentFix mkdosfs 2GB barrier (diff)
downloadandroid_bootable_recovery-3f5c4e8dfe4d29d793251379c8f8fdcda2008088.tar
android_bootable_recovery-3f5c4e8dfe4d29d793251379c8f8fdcda2008088.tar.gz
android_bootable_recovery-3f5c4e8dfe4d29d793251379c8f8fdcda2008088.tar.bz2
android_bootable_recovery-3f5c4e8dfe4d29d793251379c8f8fdcda2008088.tar.lz
android_bootable_recovery-3f5c4e8dfe4d29d793251379c8f8fdcda2008088.tar.xz
android_bootable_recovery-3f5c4e8dfe4d29d793251379c8f8fdcda2008088.tar.zst
android_bootable_recovery-3f5c4e8dfe4d29d793251379c8f8fdcda2008088.zip
Diffstat (limited to 'twrp-functions.cpp')
-rw-r--r--twrp-functions.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index 0c4471ac7..4a5dec273 100644
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -62,8 +62,7 @@ int TWFunc::Check_MD5(string File) {
if (Path_Exists(MD5_File)) {
DirPath = Get_Path(File);
MD5_File = Get_Filename(MD5_File);
- chdir(DirPath.c_str());
- Command = "/sbin/busybox md5sum -c " + MD5_File;
+ Command = "cd '" + DirPath + "' && /sbin/busybox md5sum -c '" + MD5_File + "'";
Exec_Cmd(Command, result);
pos = result.find(":");
if (pos != string::npos) {