summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/security/access/testaccess.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/regression/security/access/testaccess.c b/tools/regression/security/access/testaccess.c
index bd6945e..7d0c843 100644
--- a/tools/regression/security/access/testaccess.c
+++ b/tools/regression/security/access/testaccess.c
@@ -223,7 +223,7 @@ main(int argc, char *argv[])
}
#ifdef EACCESS_AVAILABLE
- error = eaccess("test2", R_OK);
+ error = eaccess("test1", R_OK);
if (!error) {
fprintf(stderr, "saved uid used instead of effective uid\n");
errorseen++;
@@ -270,7 +270,7 @@ main(int argc, char *argv[])
#ifdef EACCESS_AVAILABLE
/* Check that the effective uid is used, not the real uid */
error = eaccess("test2", R_OK);
- if (error) {
+ if (!error) {
fprintf(stderr, "Real uid was used instead of effective uid in eaccess().\n");
errorseen++;
}
OpenPOWER on IntegriCloud