change access() R_OK to F_OK for testing purpose
This commit is contained in:
parent
8124b83e36
commit
4434b17035
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ int main(int argc, char* argv[]) {
|
||||||
|
|
||||||
case 'c':
|
case 'c':
|
||||||
if ( OPTIONAL_ARGUMENT_IS_PRESENT ) {
|
if ( OPTIONAL_ARGUMENT_IS_PRESENT ) {
|
||||||
if ( access(optarg, R_OK | W_OK) != -1) {
|
if ( access(optarg, F_OK) != -1) {
|
||||||
printf("Contest file valid\n");
|
printf("Contest file valid\n");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue