forked from Archive/PX4-Autopilot
fix logic in posix access function
This commit is contained in:
parent
c776082dd8
commit
50a5fb94ad
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue