bug-gnulib
[Top][All Lists]
Advanced

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

Re: futimens on AIX 7.1BETA


From: Eric Blake
Subject: Re: futimens on AIX 7.1BETA
Date: Fri, 30 Jul 2010 14:17:49 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.1.1

On 07/30/2010 01:45 PM, Bruno Haible wrote:
> Hi Eric,
> 
> Rainer Tammer's logs say:
> 
>   checking whether futimens works... no
>   configure:30237: $? = 2
>   configure: program exited with status 2
> 
> Exit code 2 from this test program comes from the line
> 
>   if (futimens (AT_FDCWD, NULL)) return 2;
> 
> What is this code trying to do? POSIX [1] says that
> 
>   "If utimensat() is passed the special value AT_FDCWD in the fd parameter,
>    the current working directory shall be used."

That's a bug in the m4 script.  Thanks for calling it to my attention -
the test should be inverted: if (futimens(AT_FDCWD,NULL)==0).

Recent glibc was fixed, but we replace futimens anyways on glibc in
order to cater to people compiling with newer glibc but older kernels,
so no one noticed.

-- 
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]