[Nagiosplug-devel] Fwd: Coreutils bug?
Thomas Guyot-Sionnest
dermoth at aei.ca
Mon Dec 10 20:22:25 CET 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10/12/07 10:04 AM, Ton Voon wrote:
> Thomas,
>
> Saw this commit. I find it hard to believe that gnulib is wrong. Is
> this how df.c works in coreutils? Maybe I missed something when I was
> duplicating the df code.
When gnulib's variable is signed and available free space returns an
insanely high number, I call it a bug (it should return a negative
number which is impossible due to the unsigned nature of the variable).
I tried assigning it to a signed int of the same size and it didn't
change, so looks like the wraparound happens on the signed portion of
the integer!
I haven't looked at coreutils and *BSD use their own BSD-licensed df. I
think considering our limited development time there's more productive
things to do for now :)
> Alternatively, maybe we should do a sync with gnulib? Any volunteers?
> I'm happy to go through it with someone and we can put an entry in
> nagiosplugins.org while we do it.
If there are clear and simple path to it I could give it a shot after
next release...
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHXZHw6dZ+Kt5BchYRAiCrAJ4nsiY2AnJTt2b0ifPqx01WfjgQXgCgpCkn
7fUOw4t0T/HjHotb0wka3o0=
=BglM
-----END PGP SIGNATURE-----
More information about the Devel
mailing list