ls: fix possible incorrect exit status when recursing directories
commitb86437e1262f5e171db2d7372a4e13cd621ab706
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Thu, 5 Sep 2013 01:17:56 +0000 (5 02:17 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 5 Sep 2013 01:50:11 +0000 (5 02:50 +0100)
tree18e34578088180e9f0778853fd58d3c4760baa7f
parent0603ff3784c353cf096a02b825f76fd3a08ac756
ls: fix possible incorrect exit status when recursing directories

If there is an error reading a directory that was referenced
through recursion, rather than directly on the command line,
then exit with the "less serious" exit code, rather than the
"serious" exit code reserved for command line arguments.
This issue was introduced in commit v5.2.1-1908-gb58dea5

* src/ls.c (print_dir): Ensure that the command_line_arg param
is false for directories being recursed into.
* NEWS: Mention the bug fix.
Fixes http://bugs.gnu.org/15249
NEWS
src/ls.c