Page MenuHomeFreeBSD

strings: fix exit status if a file before the last one fails

Authored by emaste on Oct 25 2016, 5:50 PM.
Referenced Files
Sat, Mar 2, 6:54 PM
F78377029: D8334.diff
Sat, Mar 2, 6:52 PM
Unknown Object (File)
Thu, Feb 8, 6:01 PM
Unknown Object (File)
Jan 31 2024, 4:40 PM
Unknown Object (File)
Jan 30 2024, 8:02 PM
Unknown Object (File)
Jan 19 2024, 5:05 AM
Unknown Object (File)
Dec 27 2023, 5:36 PM
Unknown Object (File)
Dec 27 2023, 5:09 PM



Previously a command like "strings f1 f2 f3" reported the exit status based only on processing the last file.

As with GNU strings, report an error exit status if an error was encountered processing any of the files. While here simplify the exit status handling to just success (0) / failure (1).

Diff Detail

rS FreeBSD src repository - subversion
Lint Not Applicable
Tests Not Applicable

Event Timeline

emaste retitled this revision from to strings: fix exit status if a file before the last one fails.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added subscribers: brooks, dim.
This revision is now accepted and ready to land.Oct 25 2016, 5:56 PM
This revision was automatically updated to reflect the committed changes.

patch looks good to me