]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: fix unimplemented ioctl test
authorJ William Piggott <elseifthen@gmx.com>
Mon, 24 Jul 2017 00:16:03 +0000 (20:16 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Mon, 31 Jul 2017 20:10:47 +0000 (16:10 -0400)
commit1d5cffa16a0183175684809cf215294ec20b8fd9
tree284c92819af85fcbedfa38d05b20c60553da508a
parentcbc36f7903ca0d4ee399ad5865b5237af593bacb
hwclock: fix unimplemented ioctl test

The rtc driver has not returned EINVAL for unimplemented ioctls since
v2.5.8 in 2002. However, it does return it for other errors; making the
current test potentially problematic. Since 9f3d0fc util-linux assumes
kernel >= 2.6.0 so remove EINVAL as an ioctl test.

Signed-off-by: J William Piggott <elseifthen@gmx.com>
sys-utils/hwclock-rtc.c