mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
fix logic in posix access function
This commit is contained in:
@@ -270,7 +270,7 @@ int px4_fsync(int fd)
|
|||||||
|
|
||||||
int px4_access(const char *pathname, int mode)
|
int px4_access(const char *pathname, int mode)
|
||||||
{
|
{
|
||||||
if (mode == F_OK) {
|
if (mode != F_OK) {
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user