From: stujones11 Date: Wed, 21 Nov 2018 23:06:03 +0000 (+0000) Subject: Android: Fix recursive delete (#7882) X-Git-Tag: 5.0.0~183 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=015e46310aba7275f620e3abdf24091c0c6bc947;p=oweals%2Fminetest.git Android: Fix recursive delete (#7882) --- 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];