Skip to content

Commit

Permalink
2006-01-15 Jakub Jelinek <jakub@redhat.com>
Browse files Browse the repository at this point in the history
	* io/tst-faccessat.c (do_test): Don't fail if geteuid () == 0.
  • Loading branch information
Roland McGrath committed Jan 17, 2006
1 parent 63f8fe5 commit edbaf66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/tst-faccessat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit edbaf66

Please sign in to comment.