From edbaf668f6d6588fcf1d7a931fdd9e19a5999f6d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 17 Jan 2006 03:27:51 +0000 Subject: [PATCH] 2006-01-15 Jakub Jelinek * io/tst-faccessat.c (do_test): Don't fail if geteuid () == 0. --- io/tst-faccessat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/tst-faccessat.c b/io/tst-faccessat.c index 3bf7aed2e5..52b2e7b752 100644 --- a/io/tst-faccessat.c +++ b/io/tst-faccessat.c @@ -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; -- 2.11.4.GIT