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:
parent
63f8fe5456
commit
edbaf668f6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user