diff options
| author | Alan Somers <asomers@FreeBSD.org> | 2025-10-19 15:53:50 +0000 |
|---|---|---|
| committer | Alan Somers <asomers@FreeBSD.org> | 2025-10-19 23:26:53 +0000 |
| commit | f6d767fe862964f704baf4eb388a30ed8227bb65 (patch) | |
| tree | e659af11be2cbb666b4c41d760680b615699f84f | |
| parent | af445e1dd95d43c011f377ea6e6618637fecc61c (diff) | |
find: fix pathnames printed by the SIGINFO handler
Don't duplicate the last component.
PR: 290362
Reported by: John F. Carr <jfc@mit.edu>
Fixes: d06a00963b7
MFC after: 3 days
Reviewed by: jilles, Goran Mekić <meka@tilda.center>
Pull Request: https://github.com/freebsd/freebsd-src/pull/1878
| -rw-r--r-- | usr.bin/find/find.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
