2006-01-15 Jakub Jelinek <jakub@redhat.com>

* io/tst-faccessat.c (do_test): Don't fail if geteuid () == 0.
This commit is contained in:
Roland McGrath 2006-01-17 03:27:51 +00:00
parent 63f8fe5456
commit edbaf668f6

View File

@ -135,7 +135,7 @@ do_test (void)
errno = 0;
if (faccessat (dir_fd, "some-file", W_OK, AT_EACCESS) == 0
|| errno != EACCES)
? (geteuid () != 0) : (errno != EACCES))
{
printf ("faccessat W_OK on unwritable file: %m\n");
result = 1;