summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2013-01-21 18:02:40 +0100
committerGerrit Code Review <gerrit@5.9.244.119>2013-01-21 18:02:40 +0100
commit9d880030d683a28ff90c823e7dcb42f0a3bbcf66 (patch)
treee00d9441ef1f474c9965d7b045dd85f293b6e6b1 /partition.cpp
parentchange fuse to be compiled with TW_INCLUDE_FUSE_EXFAT (diff)
parentRemove sockets and FIFOS when removing files (diff)
downloadandroid_bootable_recovery-9d880030d683a28ff90c823e7dcb42f0a3bbcf66.tar
android_bootable_recovery-9d880030d683a28ff90c823e7dcb42f0a3bbcf66.tar.gz
android_bootable_recovery-9d880030d683a28ff90c823e7dcb42f0a3bbcf66.tar.bz2
android_bootable_recovery-9d880030d683a28ff90c823e7dcb42f0a3bbcf66.tar.lz
android_bootable_recovery-9d880030d683a28ff90c823e7dcb42f0a3bbcf66.tar.xz
android_bootable_recovery-9d880030d683a28ff90c823e7dcb42f0a3bbcf66.tar.zst
android_bootable_recovery-9d880030d683a28ff90c823e7dcb42f0a3bbcf66.zip
Diffstat (limited to 'partition.cpp')
-rw-r--r--partition.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/partition.cpp b/partition.cpp
index 291f6baa5..d16ed7c74 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1234,7 +1234,7 @@ bool TWPartition::Wipe_Data_Without_Wiping_Media() {
dir.append(de->d_name);
if (de->d_type == DT_DIR) {
TWFunc::removeDir(dir, false);
- } else if (de->d_type == DT_REG || de->d_type == DT_LNK) {
+ } 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()))
LOGI("Unable to unlink '%s'\n", dir.c_str());
}