Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not fail on EACCES when trying to open() evdevs #436

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions shared/gasync/src/input/linux/mkb.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ static int mkb_read_type(int index, int fd)

if(!has_rel_axes && !has_keys && !has_scroll)
{
PRINT_ERROR_OTHER("no rel_axes, no keys, no scroll);
return -1;
}

Expand Down Expand Up @@ -336,8 +337,13 @@ int mkb_init(const GPOLL_INTERFACE * poll_interface, int (*callback)(GE_Event*))
}
else
{
PRINT_ERROR_ERRNO("open")
ret = -1;
if(errno != EACCES) {
PRINT_ERROR_ERRNO("open");
ret = -1;
}
else {
PRINT_ERROR_OTHER("ignoring device open() returning EACCES");
}
}

free(namelist[i]);
Expand Down