bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-tar] 1.23: FreeBSD 7 bug affects GNU tar


From: Eric Blake
Subject: Re: [Bug-tar] 1.23: FreeBSD 7 bug affects GNU tar
Date: Mon, 29 Mar 2010 14:53:29 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b1 Thunderbird/3.0.3

[adding bug-gnulib]

On 03/29/2010 02:12 PM, Christian Weisgerber wrote:
> There is a stupid, stupid bug in FreeBSD 7 (up to and including the
> 7.3 release):  The fdopendir() function is present in libc, but the
> prototype is missing from <dirent.h>.
> 
> GNU tar's configure picks up fdopendir(), but since there is no
> prototype, it ends up typed as
> 
>   int fdopendir();
> 
> This is bad.  fdopendir() returns a pointer, which is truncated
> from 64 to 32 bits on LP64 platforms.  Running GNU tar's "make
> check" leaves a trail of coredumps behind...
> 
> The macro complex around m4/dirent*.m4 and m4/fdopendir.m4 needs
> some sort of check if fdopendir() is declared, and if not, must
> provide a prototype.  These macros are probably used in other GNU
> projects as well, and bug-tar may not be the right address, but I'm
> throwing it out there in the hope that it will reach somebody who
> knows how to deal with this properly.

Yep, tar borrows this from gnulib.  It shouldn't be too hard to address
in gnulib, at which point, the next tar release to use a new gnulib will
automatically be fixed.

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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