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 --- twrp-functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'twrp-functions.cpp') diff --git a/twrp-functions.cpp b/twrp-functions.cpp index d7596b8a0..edf4898b1 100644 --- a/twrp-functions.cpp +++ b/twrp-functions.cpp @@ -426,7 +426,7 @@ int TWFunc::removeDir(const string path, bool skipParent) { else LOGI("Unable to removeDir '%s': %s\n", new_path.c_str(), strerror(errno)); } - } else if (p->d_type == DT_REG || p->d_type == DT_LNK) { + } else if (p->d_type == DT_REG || p->d_type == DT_LNK || p->d_type == DT_FIFO || p->d_type == DT_SOCK) { r = unlink(new_path.c_str()); if (!r) LOGI("Unable to unlink '%s'\n", new_path.c_str()); -- cgit v1.2.3