HomeFreeBSD

MFV: less: Do not trust st_size if it equals zero

Description

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)

Details

Provenance
rbranco_suse.comAuthored on Wed, Apr 24, 5:29 AM
delphijCommitted on Sat, Apr 27, 7:07 AM
Parents
rG4f8ee76d2a33: ds1307(4): Fix a typo in a source code comment
Branches
Unknown
Tags
Unknown