]> git.ipfire.org Git - thirdparty/util-linux.git/commit
rfkill: use back and forward compatible test
authorSami Kerola <kerolasa@iki.fi>
Sat, 1 Jul 2017 08:15:12 +0000 (09:15 +0100)
committerSami Kerola <kerolasa@iki.fi>
Wed, 30 Aug 2017 19:32:49 +0000 (20:32 +0100)
commit1bee8ec6f873cbb8b569f5c65f998594295fe86e
treed3e9829a220e182a52559823e8587aa276a6a950
parent9bf5e08fd359566d556dcbbb4ad1e5dcad5ac548
rfkill: use back and forward compatible test

The rfkill_event struct might grow in future, so ensure the read sizes are
at least the minimum, and allow it to be more.

Reference: https://github.com/torvalds/linux/blob/master/include/uapi/linux/rfkill.h#L90-L102
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/rfkill.c