mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
cdrom_id: Still check profiles even if there is no media
Even when there is no medium in the drive, we should still check the profiles supported by the drive. Otherwise we fail to detect things like Blu-ray drives. See https://bugzilla.gnome.org/show_bug.cgi?id=600273 for more information. Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
parent
86f380dd29
commit
7505831b7e
@ -583,9 +583,9 @@ int main(int argc, char *argv[])
|
||||
goto exit;
|
||||
}
|
||||
|
||||
/* check for media */
|
||||
if (cd_media_compat(udev, fd) < 0)
|
||||
goto print;
|
||||
/* check for media - don't bail if there's no media as we still need to
|
||||
* to read profiles */
|
||||
cd_media_compat(udev, fd);
|
||||
|
||||
/* check if drive talks MMC */
|
||||
if (cd_inquiry(udev, fd) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user