git: 52245427a597 - releng/15.0 - find: fix pathnames printed by the SIGINFO handler

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Tue, 28 Oct 2025 01:59:12 UTC
The branch releng/15.0 has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=52245427a5975d7b610fdb2271626dc82f607046

commit 52245427a5975d7b610fdb2271626dc82f607046
Author:     Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2025-10-19 15:53:50 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2025-10-28 01:58:26 +0000

    find: fix pathnames printed by the SIGINFO handler
    
    Don't duplicate the last component.
    
    Approved by:    re (cperciva)
    PR:             290362
    Reported by:    John F. Carr <jfc@mit.edu>
    Fixes:          d06a00963b7
    Reviewed by:    jilles, Goran Mekić <meka@tilda.center>
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/1878
    
    (cherry picked from commit f6d767fe862964f704baf4eb388a30ed8227bb65)
    (cherry picked from commit be122b46be2d56de3e354d3f89af7e8e9c88f94a)
---
 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;
 		}