summaryrefslogtreecommitdiffstats
path: root/twrp-functions.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2013-02-01 18:00:52 +0100
committerGerrit Code Review <gerrit@5.9.244.119>2013-02-01 18:00:52 +0100
commit6c5936700de49017cf1309faec7fe14767cace8b (patch)
tree48f28bea66288ceca2dcee40de8243d0a30579a5 /twrp-functions.cpp
parentMerge "Disable the forced MD5 check" into twrp2.4 (diff)
parentFix fail over to vfat from exfat (diff)
downloadandroid_bootable_recovery-6c5936700de49017cf1309faec7fe14767cace8b.tar
android_bootable_recovery-6c5936700de49017cf1309faec7fe14767cace8b.tar.gz
android_bootable_recovery-6c5936700de49017cf1309faec7fe14767cace8b.tar.bz2
android_bootable_recovery-6c5936700de49017cf1309faec7fe14767cace8b.tar.lz
android_bootable_recovery-6c5936700de49017cf1309faec7fe14767cace8b.tar.xz
android_bootable_recovery-6c5936700de49017cf1309faec7fe14767cace8b.tar.zst
android_bootable_recovery-6c5936700de49017cf1309faec7fe14767cace8b.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) {