From 21ac8a1a679c94b7a7490a6ce34ed062149b9783 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 21 Apr 2012 22:59:52 +0200 Subject: [PATCH 1/1] Isolate: Let "--cleanup" remove the whole box directory --- isolate/isolate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- 2.39.2