]> git.ipfire.org Git - thirdparty/util-linux.git/commit
eject: return proper 0/1 from eject_cdrom()
authorDave Reisner <dreisner@archlinux.org>
Mon, 6 Aug 2012 15:16:12 +0000 (11:16 -0400)
committerKarel Zak <kzak@redhat.com>
Mon, 13 Aug 2012 13:45:47 +0000 (15:45 +0200)
commit3514cc3a8f14cc39589fee3edefaa161ac1bd0a6
tree5cb07287f9e11c784b513538165e01305e8bb099
parent4797b1e5928219864215c7b7cf9e6d023e345675
eject: return proper 0/1 from eject_cdrom()

main() expects this method to return 0 for failure and 1 for success, as
the other eject_*() methods do. Add the missing comparison of ioctl() >= 0

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/eject.c