Page MenuHomeFreeBSD

tail: Fix -b, -c, -n options
ClosedPublic

Authored by des on Aug 6 2025, 12:10 PM.
Tags
None
Referenced Files
F171950789: D51757.diff
Mon, Sep 14, 9:04 PM
Unknown Object (File)
Thu, Sep 10, 1:02 AM
Unknown Object (File)
Tue, Sep 8, 6:19 PM
Unknown Object (File)
Tue, Sep 8, 6:19 PM
Unknown Object (File)
Tue, Sep 8, 6:15 PM
Unknown Object (File)
Tue, Sep 8, 4:07 PM
Unknown Object (File)
Tue, Sep 8, 3:15 PM
Unknown Object (File)
Sat, Sep 5, 3:40 PM
Subscribers

Details

Summary

Switching from strtoll() to expand_number() was improper at the time as
it only accepted positive numbers. Now that it also accepts negative
numbers, the -b option is still broken because the same commit that
switched to expand_number() also dropped the multiplication by units.

Fixes: 643ac419fafb

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable