about summary refs log tree commit diff
path: root/io
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-01-17 03:27:51 +0000
committerRoland McGrath <roland@gnu.org>2006-01-17 03:27:51 +0000
commitedbaf668f6d6588fcf1d7a931fdd9e19a5999f6d (patch)
treeed5b0b67fecb91d5f1b5a9e83931710945043ba7 /io
parent63f8fe54565b20dc7adb23381a7eb21439f02a40 (diff)
downloadglibc-edbaf668f6d6588fcf1d7a931fdd9e19a5999f6d.tar.gz
glibc-edbaf668f6d6588fcf1d7a931fdd9e19a5999f6d.tar.xz
glibc-edbaf668f6d6588fcf1d7a931fdd9e19a5999f6d.zip
2006-01-15 Jakub Jelinek <jakub@redhat.com>
	* io/tst-faccessat.c (do_test): Don't fail if geteuid () == 0.
Diffstat (limited to 'io')
-rw-r--r--io/tst-faccessat.c2
1 files changed, 1 insertions, 1 deletions
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;