diff --git a/common/environment.c b/common/environment.c index 2639411..7e176b3 100644 --- a/common/environment.c +++ b/common/environment.c @@ -230,6 +230,9 @@ static int dir_remove_action(const char *filename, struct stat *statbuf, void *userdata, int depth) { + if (!depth) + return 1; + rmdir(filename); return 1;