[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: |
Paul Eggert |
Subject: |
Re: [Bug-tar] Problem with fstatat on AIX 7.1 |
Date: |
Fri, 02 Sep 2011 21:39:25 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13 |
On 09/02/11 15:39, Kevin Brott wrote:
> $ echo xxxx > file1
> $ TAR_OPTIONS=--numeric-owner truss src/tar chof archive file1
> ...
> fstatat (-2, "file1", 2ff22688, 0) -> -1; errno = 22 (A system call received
> a parameter that is not valid.)
> ...
> $ src/tar cf archive file1
> fstatat (-2, "file1", 2ff226a8, 1) -> 0; st_size = 5
That's interesting. It appears that fstatat (AT_FDCWD, ...) works
only if the last argument is 1. Can you reproduce the problem with
the following little test program?
#include <fcntl.h>
#include <sys/stat.h>
int
main (void)
{
struct stat a;
if (fstatat (AT_FDCWD, ".", &a, 0) != 0)
return 1;
return 0;
}
If my guess is right, this returns nonzero exit status, which is a bug.
If my guess is wrong, perhaps you can change the test to make it
"right", by replacing "." with the name of some other file in the
working directory, or by compiling with -D_LARGE_FILES, or by doing
both at the same time.
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Paul Eggert, 2011/09/01
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Kevin Brott, 2011/09/01
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Paul Eggert, 2011/09/01
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Kevin Brott, 2011/09/01
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Paul Eggert, 2011/09/01
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Paul Eggert, 2011/09/01
- Message not available
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Paul Eggert, 2011/09/01
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Kevin Brott, 2011/09/02
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Paul Eggert, 2011/09/02
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Kevin Brott, 2011/09/02
- Re: [Bug-tar] Problem with fstatat on AIX 7.1,
Paul Eggert <=
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Kevin Brott, 2011/09/03
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Paul Eggert, 2011/09/03
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Kevin Brott, 2011/09/03
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Paul Eggert, 2011/09/03
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Kevin Brott, 2011/09/03
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Paul Eggert, 2011/09/03
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Kevin Brott, 2011/09/03
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Paul Eggert, 2011/09/03
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Kevin Brott, 2011/09/03
- Re: [Bug-tar] Problem with fstatat on AIX 7.1, Paul Eggert, 2011/09/04