]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFV: less: Do not trust st_size if it equals zero
authorRicardo Branco <rbranco@suse.de>
Wed, 24 Apr 2024 05:29:46 +0000 (22:29 -0700)
committerXin LI <delphij@FreeBSD.org>
Wed, 24 Apr 2024 05:33:26 +0000 (22:33 -0700)
commitcae336280b0d7ad3d49788c5fc0986f91328eb50
tree8ead2eb1c4b9c95fe569fd1d657aa7b807c5d416
parentfeabaf8d5389d43b404aacfcd3298bfed94a41ab
parente8ec4b5d1202d935bcc6ed75c361b618e8da627f
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