Dear maintainers,
While building and running coreutils v8.9, I came across the following issue of
'du':
$ mkdir /tmp/foo
$ du --files0-from=/tmp/foo
du: `/tmp/foo': read error: Is a directory
...
The program enters an infinite loop -- continuously printing on stderr the
error message shown above. Although such usage pattern of 'du' is erroneous, it
better not behave this way. Looking into 'du.c', I found that the unending loop
is caused by a misconceived 'continue' statement placed after a call to 'error'
(the one labeled by 'case AI_ERR_READ'). A plausible fixing patch is immediate:
see it enclosed.
Sincerely,
Stefan Vargyas.