Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20261118125553.9133-8-ilt@envs.net>
Date: Wed, 18 Nov 2026 15:49:49 +0300
From: illiliti <ilt@...s.net>
To: musl@...ts.openwall.com
Cc: illiliti <ilt@...s.net>
Subject: [PATCH v1 07/18] fts: drop HAVE_STRUCT_DIRENT_D_NAMLEN

---
 src/misc/fts.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/misc/fts.c b/src/misc/fts.c
index 1fe66231..9196dc95 100644
--- a/src/misc/fts.c
+++ b/src/misc/fts.c
@@ -41,10 +41,6 @@
 #include <string.h>
 #include <unistd.h>
 
-#if ! HAVE_NBTOOL_CONFIG_H
-#define	HAVE_STRUCT_DIRENT_D_NAMLEN
-#endif
-
 static FTSENT	*fts_alloc(FTS *, const char *, size_t);
 static FTSENT	*fts_build(FTS *, int);
 static void	 fts_free(FTSENT *);
@@ -734,11 +730,7 @@ fts_build(FTS *sp, int type)
 		if (!ISSET(FTS_SEEDOT) && ISDOT(dp->d_name))
 			continue;
 
-#if defined(HAVE_STRUCT_DIRENT_D_NAMLEN)
-		dnamlen = dp->d_namlen;
-#else
 		dnamlen = strlen(dp->d_name);
-#endif
 		if ((p = fts_alloc(sp, dp->d_name, dnamlen)) == NULL)
 			goto mem1;
 		if (dnamlen >= maxlen) {	/* include space for NUL */
-- 
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.