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-13-ilt@envs.net>
Date: Wed, 18 Nov 2026 15:49:54 +0300
From: illiliti <ilt@...s.net>
To: musl@...ts.openwall.com
Cc: illiliti <ilt@...s.net>
Subject: [PATCH v1 12/18] fts: drop tailing slash compat support

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

diff --git a/src/misc/fts.c b/src/misc/fts.c
index 27159f20..3c49debc 100644
--- a/src/misc/fts.c
+++ b/src/misc/fts.c
@@ -269,8 +269,6 @@ fts_close(FTS *sp)
 	return 0;
 }
 
-#if !defined(__FTS_COMPAT_TAILINGSLASH)
-
 /*
  * Special case of "/" at the end of the path so that slashes aren't
  * appended which would cause paths to be written as "....//foo".
@@ -279,21 +277,6 @@ fts_close(FTS *sp)
 	(p->fts_path[p->fts_pathlen - 1] == '/'				\
 	    ? p->fts_pathlen - 1 : p->fts_pathlen)
 
-#else /* !defined(__FTS_COMPAT_TAILINGSLASH) */
-
-/*
- * compatibility with the old behaviour.
- *
- * Special case a root of "/" so that slashes aren't appended which would
- * cause paths to be written as "//foo".
- */
-
-#define	NAPPEND(p)							\
-	(p->fts_level == FTS_ROOTLEVEL && p->fts_pathlen == 1 &&	\
-	    p->fts_path[0] == '/' ? 0 : p->fts_pathlen)
-
-#endif /* !defined(__FTS_COMPAT_TAILINGSLASH) */
-
 FTSENT *
 fts_read(FTS *sp)
 {
-- 
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.