Created attachment 231498 [details] patch to stat(1) Another fix for stat(1) ! Simple one again. Note the output of typical commands when there is an error: $ $ ls none ls: none: No such file or directory $ cat none cat: none: No such file or directory $ stat none stat: none: stat: No such file or directory "stat" includes its name twice. patch attached to fix it!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=37399d5bcf67c6d68e30a34ce2df30e0964d46d9 commit 37399d5bcf67c6d68e30a34ce2df30e0964d46d9 Author: Jamie Landeg-Jones <jamie@catflap.org> AuthorDate: 2023-01-29 22:37:25 +0000 Commit: Xin LI <delphij@FreeBSD.org> CommitDate: 2023-01-29 22:37:25 +0000 usr.bin/stat: Fix error message formatting. PR: bin/261657 MFC after: 3 days usr.bin/stat/stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=9eea81e59641df1a5a45dbe06628081bc4bb7bad commit 9eea81e59641df1a5a45dbe06628081bc4bb7bad Author: Jamie Landeg-Jones <jamie@catflap.org> AuthorDate: 2023-01-29 22:37:25 +0000 Commit: Xin LI <delphij@FreeBSD.org> CommitDate: 2023-02-01 07:24:52 +0000 usr.bin/stat: Fix error message formatting. PR: bin/261657 (cherry picked from commit 37399d5bcf67c6d68e30a34ce2df30e0964d46d9) usr.bin/stat/stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=b2ffd03bbb3e9cfb0cb9a6995a0e23351d2004fb commit b2ffd03bbb3e9cfb0cb9a6995a0e23351d2004fb Author: Jamie Landeg-Jones <jamie@catflap.org> AuthorDate: 2023-01-29 22:37:25 +0000 Commit: Xin LI <delphij@FreeBSD.org> CommitDate: 2023-02-01 07:25:36 +0000 usr.bin/stat: Fix error message formatting. PR: bin/261657 (cherry picked from commit 37399d5bcf67c6d68e30a34ce2df30e0964d46d9) usr.bin/stat/stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Committed, thanks!