[pseudo][PATCH 06/11] ports/unix: fts_open: Fix chroot behavior

Mark Hatle <[email protected]>
Newsgroups org.yoctoproject.lists.yocto-patches
Message-ID <[email protected]>
From: Mark Hatle <[email protected]>

The fts_open wrapper was resolving paths via PSEUDO_ROOT_PATH into
rpath_argv, but then used path_argv in the real_fts_open call.
Switch this to using the pseudo processed root paths.

AI-Generated: AI was used to identify the source of the issue - github copilot (claude opus 4.6)

Signed-off-by: Mark Hatle <[email protected]>
Signed-off-by: Mark Hatle <[email protected]>
---
 ports/unix/guts/fts_open.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ports/unix/guts/fts_open.c b/ports/unix/guts/fts_open.c
index ccc9322..6acdf9b 100644
--- a/ports/unix/guts/fts_open.c
+++ b/ports/unix/guts/fts_open.c
@@ -42,7 +42,8 @@
 		errno = ENOMEM;
 		rc = NULL;
 	} else {
-		rc = real_fts_open(path_argv, options, compar);
+		rpath_argv[args] = NULL;
+		rc = real_fts_open(rpath_argv, options, compar);
 	}
 	for (i = 0; i < args; ++i)
 		free(rpath_argv[i]);
-- 
1.8.3.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.