From 1efedf847ecd86bc1301aafaff21f00481fd31f4 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Mon, 20 Jun 2022 12:13:18 -0400 Subject: executor: also reset flags on the parent dir if unlinking fails --- executor/common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'executor/common.h') 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; } -- cgit mrf-deployment