From: Perttu Ahola Date: Tue, 6 Sep 2011 14:52:03 +0000 (+0300) Subject: Fix bug in posix file/directory removal wrapper, as pointed out by kahrl X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=bc847e8cc223fbceb075eda94d8a0413ef404e9a;p=zefram%2Fminetest%2Fminetest_engine.git Fix bug in posix file/directory removal wrapper, as pointed out by kahrl --- diff --git a/src/filesys.cpp b/src/filesys.cpp index 037d21fd..8aa10ba5 100644 --- a/src/filesys.cpp +++ b/src/filesys.cpp @@ -254,7 +254,7 @@ bool RecursiveDelete(std::string path) execv(argv[0], argv); // Execv shouldn't return. Failed. - return false; + _exit(1); } else {