]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r307969: strings: fix exit status if a file before the last one fails
authoremaste <emaste@FreeBSD.org>
Fri, 25 Nov 2016 00:25:59 +0000 (00:25 +0000)
committeremaste <emaste@FreeBSD.org>
Fri, 25 Nov 2016 00:25:59 +0000 (00:25 +0000)
commitda711180e126400521ec0737a553061f9230d0bd
treea7b44ae34bdb91003634f54b78cb600a68783745
parentb2ffd6a229ed6549e6b2ccbea064a84cb483ab28
MFC r307969: strings: fix exit status if a file before the last one fails

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).
contrib/elftoolchain/strings/strings.c