libinput's open_restricted should return a negative errno
Affected version
mutter-45.0-9.fc39.x86_64 and git as of (45.0-127-g2c4968fb)
Bug summary
The open_restricted()
that libinput uses to open device files should return the fd or a negative errno on failure (see the documentation). Currently it always returns -1 (Operation not permitted).
This is a cosmetic issue only, the only use of this return value is for a log message in libinput.