From 4434b17035e781dd3d73c524a0e7455c58e12b49 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Fri, 17 Sep 2021 16:09:51 +0200 Subject: [PATCH] change access() R_OK to F_OK for testing purpose --- src/utictactoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utictactoe.c b/src/utictactoe.c index 7712211..ef2c4b3 100644 --- a/src/utictactoe.c +++ b/src/utictactoe.c @@ -104,7 +104,7 @@ int main(int argc, char* argv[]) { case 'c': if ( OPTIONAL_ARGUMENT_IS_PRESENT ) { - if ( access(optarg, R_OK | W_OK) != -1) { + if ( access(optarg, F_OK) != -1) { printf("Contest file valid\n"); } else {