diff options
Diffstat (limited to 'src/xf86libinput.c')
-rw-r--r-- | src/xf86libinput.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xf86libinput.c b/src/xf86libinput.c index ef03d3e..888c8f2 100644 --- a/src/xf86libinput.c +++ b/src/xf86libinput.c @@ -2187,6 +2187,12 @@ open_restricted(const char *path, int flags, void *data) InputInfoPtr pInfo; int fd = -1; + /* Special handling for sysfs files (used for pad LEDs) */ + if (strneq(path, "/sys/", 5)) { + fd = open(path, flags); + return fd < 0 ? -errno : fd; + } + nt_list_for_each_entry(pInfo, xf86FirstLocalDevice(), next) { char *device = xf86CheckStrOption(pInfo->options, "Device", NULL); |