From f6d767fe862964f704baf4eb388a30ed8227bb65 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sun, 19 Oct 2025 09:53:50 -0600 Subject: [PATCH] find: fix pathnames printed by the SIGINFO handler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don't duplicate the last component. PR: 290362 Reported by: John F. Carr Fixes: d06a00963b7 MFC after: 3 days Reviewed by: jilles, Goran Mekić Pull Request: https://github.com/freebsd/freebsd-src/pull/1878 --- usr.bin/find/find.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/find/find.c b/usr.bin/find/find.c index 8b24ecd6a306..2247ae86a94b 100644 --- a/usr.bin/find/find.c +++ b/usr.bin/find/find.c @@ -211,7 +211,7 @@ find_execute(PLAN *plan, char *paths[]) } if (showinfo) { - fprintf(stderr, "Scanning: %s/%s\n", entry->fts_path, entry->fts_name); + fprintf(stderr, "Scanning: %s\n", entry->fts_path); fprintf(stderr, "Scanned: %zu\n\n", counter); showinfo = 0; }