fix logic in posix access function

This commit is contained in:
tumbili 2015-09-02 18:37:57 +02:00
parent c776082dd8
commit 50a5fb94ad
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ int px4_fsync(int fd)
int px4_access(const char *pathname, int mode)
{
if (mode == F_OK) {
if (mode != F_OK) {
errno = EINVAL;
return -1;
}