bug-tar
[Top][All Lists]
Advanced

[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: Sat, 03 Sep 2011 11:44:49 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13

Hmm, this makes it appear that fstatat always fails
if its flags argument is zero, which makes the AIX bug
worse than what we thought.  Can you please test this
guess by trying the following test program and seeing
what its exit status is?

  #include <fcntl.h>
  #include <sys/stat.h>

  int
  main (void)
  {
    struct stat a;
    int fd = open (".", O_RDONLY);
    if (fd < 0)
      return 1;
    if (fstatat (fd, ".", &a, 0) != 0)
      return 2;
    return 0;
  }




reply via email to

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