Page MenuHomeFreeBSD

xargs: fix -R so that it accepts negative numbers again
ClosedPublic

Authored by des on Jul 13 2023, 7:59 PM.
Tags
None
Referenced Files
F152688089: D41021.id124622.diff
Thu, Apr 16, 12:51 PM
Unknown Object (File)
Wed, Apr 15, 4:56 PM
Unknown Object (File)
Tue, Apr 14, 1:37 AM
Unknown Object (File)
Sun, Apr 12, 5:02 AM
Unknown Object (File)
Wed, Apr 1, 11:35 AM
Unknown Object (File)
Wed, Apr 1, 2:38 AM
Unknown Object (File)
Thu, Mar 26, 7:57 AM
Unknown Object (File)
Feb 14 2026, 8:17 PM
Subscribers

Details

Summary

fbc445addf9 converted the parsing of arguments to strtonum but made
the accepted range for -R too restrictive. As documented in the man
page, it should accept negative numbers.

Added a test for this, which was provided by Jose Luis Duran.

Diff Detail

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