Summary: | [patch] less(1) is not able to operate on files residing in pseudo-filesystems | ||
---|---|---|---|
Product: | Base System | Reporter: | Ricardo Branco <rbranco> |
Component: | bin | Assignee: | Xin LI <delphij> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | delphij, imp, zarychtam |
Priority: | --- | ||
Version: | 14.0-STABLE | ||
Hardware: | Any | ||
OS: | Any |
Description
Ricardo Branco
2024-01-05 19:44:09 UTC
Opened issue upstream: https://github.com/gwsw/less/issues/465 Please try: cat /compat/linux/proc/cpuinfo | less (In reply to Marek Zarychta from comment #2) I know, but this could be fixed just like other tools that were fixed for the same bug: https://github.com/freebsd/freebsd-src/pull/989 https://github.com/freebsd/freebsd-src/pull/990 I'll land the PRs A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=cae336280b0d7ad3d49788c5fc0986f91328eb50 commit cae336280b0d7ad3d49788c5fc0986f91328eb50 Merge: feabaf8d5389 e8ec4b5d1202 Author: Ricardo Branco <rbranco@suse.de> AuthorDate: 2024-04-24 05:29:46 +0000 Commit: Xin LI <delphij@FreeBSD.org> CommitDate: 2024-04-24 05:33:26 +0000 MFV: less: Do not trust st_size if it equals zero This is a smaller version of upstream 1fafd968b48e5cea6c85f126d77071a8de707a55 to address the issue that less not being able to operate on files residing in pseudo-filesystems that advertize a zero size value. PR: bin/276133 MFC after: 3 days contrib/less/ch.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=5132cb42607bf7e1cc640e7c4ff4a1e9cfa3916d commit 5132cb42607bf7e1cc640e7c4ff4a1e9cfa3916d Author: Ricardo Branco <rbranco@suse.de> AuthorDate: 2024-04-24 05:29:46 +0000 Commit: Xin LI <delphij@FreeBSD.org> CommitDate: 2024-04-27 07:07:32 +0000 MFV: less: Do not trust st_size if it equals zero This is a smaller version of upstream 1fafd968b48e5cea6c85f126d77071a8de707a55 to address the issue that less not being able to operate on files residing in pseudo-filesystems that advertize a zero size value. PR: bin/276133 (cherry picked from commit cae336280b0d7ad3d49788c5fc0986f91328eb50) contrib/less/ch.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=302d0acea8a0bc18a26b5e0f1a7870b09dc58d16 commit 302d0acea8a0bc18a26b5e0f1a7870b09dc58d16 Author: Ricardo Branco <rbranco@suse.de> AuthorDate: 2024-04-24 05:29:46 +0000 Commit: Xin LI <delphij@FreeBSD.org> CommitDate: 2024-04-27 07:08:17 +0000 MFV: less: Do not trust st_size if it equals zero This is a smaller version of upstream 1fafd968b48e5cea6c85f126d77071a8de707a55 to address the issue that less not being able to operate on files residing in pseudo-filesystems that advertize a zero size value. PR: bin/276133 (cherry picked from commit cae336280b0d7ad3d49788c5fc0986f91328eb50) contrib/less/ch.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) |