aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstujones11 <stujones111@gmail.com>2018-11-21 23:06:03 +0000
committerParamat <paramat@users.noreply.github.com>2018-11-21 23:06:03 +0000
commit015e46310aba7275f620e3abdf24091c0c6bc947 (patch)
tree4f576a6f969e56f911e96f3f3f7e9135acab25a3 /src
parent67b20ff15a4786edd76adcbdb921fcc4acac7113 (diff)
downloadminetest-015e46310aba7275f620e3abdf24091c0c6bc947.tar.gz
minetest-015e46310aba7275f620e3abdf24091c0c6bc947.tar.bz2
minetest-015e46310aba7275f620e3abdf24091c0c6bc947.zip
Android: Fix recursive delete (#7882)
Diffstat (limited to 'src')
-rw-r--r--src/filesys.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/filesys.cpp b/src/filesys.cpp
index be61ba430..dc34b6b56 100644
--- a/src/filesys.cpp
+++ b/src/filesys.cpp
@@ -303,7 +303,11 @@ bool RecursiveDelete(const std::string &path)
{
// Child
char argv_data[3][10000];
+#ifdef __ANDROID__
+ strcpy(argv_data[0], "/system/bin/rm");
+#else
strcpy(argv_data[0], "/bin/rm");
+#endif
strcpy(argv_data[1], "-rf");
strncpy(argv_data[2], path.c_str(), 10000);
char *argv[4];