X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=isolate%2Fisolate.c;h=33c50889a736f51771afd633bcee21ec16844a77;hb=21ac8a1a679c94b7a7490a6ce34ed062149b9783;hp=20d9f9f5dd35714356f1b1f19406b117409a9c0c;hpb=b11b8290a7ad91715c1e0f108014499044af1f55;p=moe.git diff --git a/isolate/isolate.c b/isolate/isolate.c index 20d9f9f..33c5088 100644 --- a/isolate/isolate.c +++ b/isolate/isolate.c @@ -1090,7 +1090,9 @@ cleanup(void) die("Box directory not found, there isn't anything to clean up"); msg("Deleting sandbox directory\n"); - xsystem("rm -rf box"); + xsystem("rm -rf *"); + if (rmdir(box_dir) < 0) + die("Cannot remove %s: %m", box_dir); cg_remove(); }