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

Previous Next

Package: coreutils;

Reported by: Stefan Vargyas <stvar <at> yahoo.com>

Date: Wed, 2 Mar 2011 14:23:01 UTC

Severity: normal

Fixed in version 8.11

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stefan Vargyas <stvar <at> yahoo.com>
To: bug-coreutils <at> gnu.org
Subject: du: issue with `--files0-from=DIR'
Date: Wed, 2 Mar 2011 05:28:14 -0800 (PST)
[Message part 1 (text/plain, inline)]
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.



[bug-report-du-files0-from-dir.patch (text/plain, attachment)]

This bug report was last modified 14 years and 64 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.