diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2015-01-22 11:36:02 +1000 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-01-22 10:53:29 -0500 |
commit | 8dbce34b0373923c7aa7d795024bbedb0a85c7ea (patch) | |
tree | 1227d03899ca6e38ed4ee4cec0a9c9565ed63c48 /src | |
parent | b5b38b41c37dbe1a117af9bf99e94b58ac91239a (diff) |
logind: fix sd_eviocrevoke ioctl call
If the third argument is non-null, the kernel will always error out with
EINVAL and devices won't get revoked.
Reported-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/login/logind-session-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-session-device.c b/src/login/logind-session-device.c index 932abb82f9..c2de862250 100644 --- a/src/login/logind-session-device.c +++ b/src/login/logind-session-device.c @@ -107,7 +107,7 @@ static int sd_eviocrevoke(int fd) { assert(fd >= 0); - r = ioctl(fd, EVIOCREVOKE, 1); + r = ioctl(fd, EVIOCREVOKE, NULL); if (r < 0) { r = -errno; if (r == -EINVAL && !warned) { |