One more bug in ldconfig -r handling.
[glibc.git] / io / bug-ftw5.c
blobc1cd81d30eec39e30d62c5dd5ad52fa06766e68e
1 #include <errno.h>
2 #include <ftw.h>
3 #include <stdio.h>
5 static int
6 fn (const char *file, const struct stat *sb, int flag, struct FTW *s)
8 puts (file);
9 return FTW_STOP;
12 static int
13 do_test (void)
15 if (nftw ("/", fn, 0, FTW_CHDIR | FTW_ACTIONRETVAL) < 0)
17 printf ("nftw / FTW_CHDIR: %m\n");
18 return 1;
21 return 0;
24 #define TEST_FUNCTION do_test ()
25 #include "../test-skeleton.c"