From 98f1f903cceee4a0c7a3693c6bd93825210cdf96 Mon Sep 17 00:00:00 2001 From: bigbiff bigbiff Date: Sat, 19 Jan 2013 18:46:13 -0500 Subject: Remove sockets and FIFOS when removing files --- partition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'partition.cpp') 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()); } -- cgit v1.2.3