bug-coreutils
[Top][All Lists]
Advanced

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

Re: coreutils v5.2.1 - stat.c


From: Bob Proulx
Subject: Re: coreutils v5.2.1 - stat.c
Date: Mon, 26 Sep 2005 21:04:12 -0600
User-agent: Mutt/1.5.9i

ThMO wrote:
> the `stat' command doesn't return an errorcode in case a given file
> couldn't be stated.
> The bug seems to be in the first calling parameter to `error()', which
> is always 0, so the global variable `G_fail' will never be set, in
> order to return something different than EXIT_SUCCESS - which is wrong.

Thank you for taking the time to dig into this and report the bug.
This is greatly appreciated.  This bug is fixed in the latest test
release.  A new test release is in the works right now.  But there
have been quite a few changes recently and so it will take some time
before it can be called stable.  The next stable release will contain
this fix.

You might want to try the latest test release:
  ftp://alpha.gnu.org/gnu/coreutils/coreutils-5.3.0.tar.gz
  ftp://alpha.gnu.org/gnu/coreutils/coreutils-5.3.0.tar.bz2

Or even the latest from cvs:
  http://savannah.gnu.org/cvs/?group=coreutils

The CVS entry for the fix is:

----------------------------
revision 1.73
date: 2004-08-03 19:08:31 +0000;  author: eggert;  state: Exp;  lines: +63 -68
(G_fail): Remove.
(print_statfs): Print various gotta-be-nonnegative values using
unsigned long int, not long int or int.
(do_statfs, do_stat): Return a boolean success flag.
(do_stat, main): Use bool for booleans.
----------------------------

Thanks again,
Bob




reply via email to

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