Source: findutils
Version: 4.6.0+git+20160126-2
Severity: important
Forwarded: https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00009.html

Hi,

findutils FTBFS on hurd-i386 with a testsuite failure:

https://buildd.debian.org/status/fetch.php?pkg=findutils&arch=hurd-i386&ver=4.6.0%2Bgit%2B20160126-2&stamp=1454879378

FAIL: test-faccessat


Looking a bit at the upstream discussion ... the argument about
GNULIB_SUPPORT_ONLY_AT_FDCWD is wrong, since the faccessat() being used
comes from glibc, not from findutils gl/lib/faccessat.c

The test runs

    ASSERT (faccessat (-1, "foo", F_OK, 0) == -1);
    ASSERT (errno == EBADF);

and the glibc implementation (sysdeps/mach/hurd/faccessat.c) starts with

int
faccessat (fd, file, type, flag)
     int fd;
     const char *file;
     int type;
     int flag;
{
  error_t err;
  file_t port;
  int allowed, flags;

  if ((flag & AT_EACCESS) == 0)
    { 
      if (fd == AT_FDCWD || file[0] == '/')
        return __access (file, type);
      __set_errno (ENOTSUP);    /* XXX later */
      return -1;
    }


so we should be clearly getting ENOTSUP ...


Andreas

Reply via email to