Global: add missing O_CLOEXEC to open()

This commit is contained in:
apocelipes
2025-06-19 18:11:54 +08:00
committed by Carter Li
parent 68fd21d0e4
commit 3291a9945f
17 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -290,7 +290,7 @@ bool ffSuppressIO(bool suppress)
void listFilesRecursively(uint32_t baseLength, FFstrbuf* folder, uint8_t indentation, const char* folderName, bool pretty)
{
FF_AUTO_CLOSE_FD int dfd = open(folder->chars, O_RDONLY);
FF_AUTO_CLOSE_FD int dfd = open(folder->chars, O_RDONLY | O_CLOEXEC);
if (dfd < 0)
return;