diff options
Diffstat (limited to 'posix/tst-chmod.c')
-rw-r--r-- | posix/tst-chmod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/posix/tst-chmod.c b/posix/tst-chmod.c index b031fbe6f4..70f4de0776 100644 --- a/posix/tst-chmod.c +++ b/posix/tst-chmod.c @@ -153,7 +153,7 @@ do_test (int argc, char *argv[]) } close (fd); } - if (errno != EACCES) + else if (errno != EACCES) { puts ("creat didn't generate correct errno value"); result = 1; @@ -177,7 +177,7 @@ do_test (int argc, char *argv[]) } close (fd); } - if (errno != EACCES) + else if (errno != EACCES) { puts ("creat didn't generate correct errno value"); result = 1; |