summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornkk71 <nkk71x@gmail.com>2017-06-13 18:49:05 +0200
committerDees Troy <dees_troy@teamw.in>2017-06-17 14:21:47 +0200
commit9efbe769c364103a58ba679fe96eb6e3210c3b01 (patch)
tree5b4265ad52b6b265b9505c9f57355a470a017d19
parenttwrpDigest refactor (diff)
downloadandroid_bootable_recovery-9efbe769c364103a58ba679fe96eb6e3210c3b01.tar
android_bootable_recovery-9efbe769c364103a58ba679fe96eb6e3210c3b01.tar.gz
android_bootable_recovery-9efbe769c364103a58ba679fe96eb6e3210c3b01.tar.bz2
android_bootable_recovery-9efbe769c364103a58ba679fe96eb6e3210c3b01.tar.lz
android_bootable_recovery-9efbe769c364103a58ba679fe96eb6e3210c3b01.tar.xz
android_bootable_recovery-9efbe769c364103a58ba679fe96eb6e3210c3b01.tar.zst
android_bootable_recovery-9efbe769c364103a58ba679fe96eb6e3210c3b01.zip
-rw-r--r--partition.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/partition.cpp b/partition.cpp
index 1f57a534f..543e8674b 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -2124,7 +2124,7 @@ bool TWPartition::Wipe_Data_Without_Wiping_Media_Func(const string& parent __unu
}
rmdir(dir.c_str());
} else if (de->d_type == DT_REG || de->d_type == DT_LNK || de->d_type == DT_FIFO || de->d_type == DT_SOCK) {
- if (!unlink(dir.c_str()))
+ if (unlink(dir.c_str()) != 0)
LOGINFO("Unable to unlink '%s': %s\n", dir.c_str(), strerror(errno));
}
}