HomeFreeBSD

wc: Do not use st_size if it equals zero

Description

wc: Do not use st_size if it equals zero

Pseudo-filesystems often cannot compute the size of the file correctly
and report 0 for the size. Ignore the size when it's zero and fallback
to the size unknown code.

PR: 276093
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/985

Details

Provenance
rbranco_suse.comAuthored on Feb 3 2024, 12:05 AM
impCommitted on Feb 3 2024, 1:34 AM
Parents
rG5ff76402daf1: pkg-stage.sh: add x11/sddm
Branches
Unknown
Tags
Unknown