From 2ba57fd1832a4bc3c4c652c08e5f62054ecab79b Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Fri, 18 Feb 2011 15:02:35 +0100 Subject: s4:smbtorture do not leave output directory around MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit calling smbtorture with no or invalid arguments left the temporary output directory around this patches removes the dead-end exit from usage and makes the logic go on until the final cleanup state is reached output directory will still be left around when test times out or testcases itself force an exit also make sure that the directory itself is deleted, not just the objects in it Signed-off-by: Matthias Dieter Wallnöfer Signed-off-by: Andrew Bartlett Autobuild-User: Matthias Dieter Wallnöfer Autobuild-Date: Mon Feb 21 11:35:30 CET 2011 on sn-devel-104 --- lib/torture/torture.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/torture') diff --git a/lib/torture/torture.c b/lib/torture/torture.c index a12ce657ba..a0b35bfe7c 100644 --- a/lib/torture/torture.c +++ b/lib/torture/torture.c @@ -138,6 +138,7 @@ static int local_deltree(const char *path) } } closedir(dir); + rmdir(path); return ret; } -- cgit