]> git.ipfire.org Git - thirdparty/util-linux.git/commit
rfkill: stop execution when rfkill device cannot be opened
authorSami Kerola <kerolasa@iki.fi>
Fri, 23 Oct 2020 19:39:24 +0000 (20:39 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 10 Feb 2021 16:20:46 +0000 (17:20 +0100)
commit1656645e82824495b7ae814f0e961d0608f11d97
tree73b5b1f4c13dd09712349a496ef09e2baaa2759c
parent65d9baa10feaaa7752601c5846bdc2de70fe8a83
rfkill: stop execution when rfkill device cannot be opened

Without this two error messages are printed when rfkill device
cannot be opened.

    $ rfkill
    rfkill: cannot open /dev/rfkill: No such file or directory
    rfkill: cannot read /dev/rfkill: Bad file descriptor

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