aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
Diffstat (limited to 'executor')
-rw-r--r--executor/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/executor/common.h b/executor/common.h
index 92a4d5133..f4201ca45 100644
--- a/executor/common.h
+++ b/executor/common.h
@@ -299,6 +299,7 @@ static void __attribute__((noinline)) remove_dir(const char* dir)
#if GOOS_freebsd
if (errno == EPERM) {
reset_flags(filename);
+ reset_flags(dir);
if (unlink(filename) == 0)
continue;
}