diff options
author | Roland McGrath <roland@gnu.org> | 2006-01-17 03:27:51 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2006-01-17 03:27:51 +0000 |
commit | edbaf668f6d6588fcf1d7a931fdd9e19a5999f6d (patch) | |
tree | ed5b0b67fecb91d5f1b5a9e83931710945043ba7 /io | |
parent | 63f8fe54565b20dc7adb23381a7eb21439f02a40 (diff) | |
download | glibc-edbaf668f6d6588fcf1d7a931fdd9e19a5999f6d.zip glibc-edbaf668f6d6588fcf1d7a931fdd9e19a5999f6d.tar.gz glibc-edbaf668f6d6588fcf1d7a931fdd9e19a5999f6d.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io/tst-faccessat.c b/io/tst-faccessat.c index 3bf7aed..52b2e7b 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; |