[Top][All Lists]

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

Re: [Bug-tar] Problem with fstatat on AIX 7.1

From: Kevin Brott
Subject: Re: [Bug-tar] Problem with fstatat on AIX 7.1
Date: Mon, 5 Sep 2011 11:25:40 -0700

On Mon, Sep 5, 2011 at 06:31, Paul Eggert <address@hidden> wrote:
On 09/04/11 18:14, Kevin Brott wrote:
> Attached the config.log from the second tarball you asked me to use

And it says that AIX 7.1's openat exists.  But tar isn't
invoking it; it's invoking 'open'.

I have a sneaking suspicion that openat has the same problem
that fstatat does.  I suggest checking for this by running this shell

export LC_ALL=C
cd /usr/include
grep -En "^$s*#$s*define$s+[a-z]*at$s" $(find * -type f -print)

and then investigating the matches.  This should catch openat,
plus all the other *at functions (most of which GNU tar uses).
We might as well fix them all, while we're at it.

fcntl.h:106:#define openat      open64at
fcntl.h:108:#define     creat   creat64
netns/spp_var.h:197:#define sppstat spp_istat.newstats
sys/stat.h:323:#define stat     stat64
sys/stat.h:324:#define fstat    fstat64
sys/stat.h:326:#define lstat    lstat64
sys/stat.h:329:#define fstatat stat64at
wchar.h:449:#define wstrcat NCstrcat
wchar.h:452:#define wstrncat NCstrncat

# include <stddisclaimer.h>
/* Kevin  Brott <address@hidden> */

reply via email to

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