]> err.no Git - util-linux/commit
Only check for ENOMEDIUM when ENOMEDIUM is defined.
authorCyril Brulebois <kibi@debian.org>
Fri, 24 Jul 2009 15:42:08 +0000 (17:42 +0200)
committerLaMont Jones <lamont@debian.org>
Fri, 24 Jul 2009 16:18:06 +0000 (10:18 -0600)
commitc0f07c8b674f8cb6280925711bf40b95fad2fd2d
tree096785d52dd02fd9ff0251f9903c4cf37766b1d5
parent375f9a1fcb2f3e084082239ac5405798fbd90223
Only check for ENOMEDIUM when ENOMEDIUM is defined.

ENOMEDIUM is Linux-only. On other systems, the open call on a CD-ROM
device without any medium may be successful and a subsequent read may
return EINVAL instead. Let's just break out of the loop if ENOMEDIUM
isn't defined.

Signed-off-by: Cyril Brulebois <kibi@debian.org>
Signed-off-by: LaMont Jones <lamont@debian.org>
lib/fsprobe.c