|
|
Message-ID: <20261118125553.9133-12-ilt@envs.net>
Date: Wed, 18 Nov 2026 15:49:53 +0300
From: illiliti <ilt@...s.net>
To: musl@...ts.openwall.com
Cc: illiliti <ilt@...s.net>
Subject: [PATCH v1 11/18] fts: assume O_CLOEXEC is available
---
src/misc/fts.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/misc/fts.c b/src/misc/fts.c
index 498ef576..27159f20 100644
--- a/src/misc/fts.c
+++ b/src/misc/fts.c
@@ -182,9 +182,6 @@ fts_open(char * const *argv, int options,
* and ".." are all fairly nasty problems. Note, if we can't get the
* descriptor we run anyway, just more slowly.
*/
-#ifndef O_CLOEXEC
-#define O_CLOEXEC 0
-#endif
if (!ISSET(FTS_NOCHDIR)) {
if ((sp->fts_rfd = open(".", O_RDONLY | O_CLOEXEC, 0)) == -1)
SET(FTS_NOCHDIR);
--
2.55.0
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.