Page MenuHomeFreeBSD

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

Authored by des on Aug 6 2025, 12:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 13, 3:35 AM
Unknown Object (File)
Fri, Oct 10, 8:14 AM
Unknown Object (File)
Fri, Oct 10, 8:14 AM
Unknown Object (File)
Fri, Oct 10, 8:14 AM
Unknown Object (File)
Fri, Oct 10, 2:09 AM
Unknown Object (File)
Wed, Oct 8, 9:05 PM
Unknown Object (File)
Sun, Oct 5, 9:12 PM
Unknown Object (File)
Sun, Oct 5, 8:09 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