[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8154: du: issue with `--files0-from=DIR'

From: Stefan Vargyas
Subject: bug#8154: du: issue with `--files0-from=DIR'
Date: Wed, 2 Mar 2011 05:28:14 -0800 (PST)

Dear maintainers,

While building and running coreutils v8.9, I came across the following issue of 

  $ 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.


Stefan Vargyas.

Attachment: bug-report-du-files0-from-dir.patch
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]