]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd-terminal/idev-evdev.c
terminal: fix wrong return value in idev if fcntl() fails
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 11 Sep 2014 13:29:58 +0000 (15:29 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 11 Sep 2014 13:29:58 +0000 (15:29 +0200)
commit667b60341f404d8f18aa0909e34d39e7d6baa56b
treebba3f01d524c27f9764769bda492c4ac77f14b15
parentc600022303a10155f48a8eab59c6c0ae1b797699
terminal: fix wrong return value in idev if fcntl() fails

This might cause >=0 to be returned, even though the method failed. Fix
this and return -errno.
src/libsystemd-terminal/idev-evdev.c