diff options
| -rw-r--r-- | executor/common.h | 1 | ||||
| -rw-r--r-- | pkg/csource/generated.go | 1 |
2 files changed, 2 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; } diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go index 570abee7f..6168f1793 100644 --- a/pkg/csource/generated.go +++ b/pkg/csource/generated.go @@ -258,6 +258,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; } |
