]> git.ipfire.org Git - thirdparty/util-linux.git/commit
rfkill: do not fsync(3) /dev/rfkill file descriptor
authorSami Kerola <kerolasa@iki.fi>
Mon, 11 Sep 2017 19:55:58 +0000 (20:55 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 15 Sep 2017 10:24:31 +0000 (12:24 +0200)
commitb120966812809c816a184f21bf10c65ed837bf49
tree1602d19028dd96c66827ed9b73e7b65a3c7111f1
parent4f892d77d5c960431e0b3f08e469d82ec55da0d8
rfkill: do not fsync(3) /dev/rfkill file descriptor

Attempt to fsync() this device returns EINVAL, causing the rfkill always to
return EXIT_FAILURE when either block or unblock is requested.  Simply
closing the file descriptor will fix the issue.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/rfkill.c