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
MFC after: 3 days

Details

Provenance
rbranco_suse.comAuthored on Wed, Apr 24, 5:29 AM
delphijCommitted on Wed, Apr 24, 5:33 AM
Parents
rGe8ec4b5d1202: less: Do not trust st_size if it equals zero
rGfeabaf8d5389: Revert "swapon: Do not overwrite Linux swap header"
Branches
Unknown
Tags
Unknown