Hello Bruno, Bruno Haible wrote: > Hello Rainer, > > Rainer Tammer wrote: > >>> test-chown.h:88: assertion failed >>> FAIL: test-fchownat >>> >> test_chown(func = 0x20000d50, print = 1), line 88 in "test-chown.h" >> main(), line 70 in "test-fchownat.c" >> > Can you please try and show the output of this test program? It's a candidate > for an autoconf test. > > =============================================================================== > #define _GNU_SOURCE 1 > #define _ALL_SOURCE 1 > #include <unistd.h> > #include <fcntl.h> > #include <errno.h> > #include <stdio.h> > > int main () > { > int fd; > int err; > int ret; > > /* Ensure a clean working area. */ > unlink ("conftestdir/file"); > rmdir ("conftestdir"); > > /* Create a directory. */ > if (mkdir ("conftestdir", 0700) < 0) > return 1; > /* Create a regular file. */ > fd = open ("conftestdir/file", O_CREAT | O_EXCL | O_WRONLY, 0600); > if (fd < 0) > return 2; > if (close (fd) < 0) > return 3; > /* Test whether a trailing "/" is treated like "/.". */ > ret = fchownat (AT_FDCWD, "conftestdir/file/", -1, -1, 0); > err = errno; > fprintf (stderr, "ret = %d\n", ret); > if (ret < 0) > { > fprintf (stderr, "errno = %d\n", err); > errno = err; > perror (""); > } > > return 0; > } > =============================================================================== > >
# ./testme ret = 0 > Bruno > > > bye Rainer