summaryrefslogtreecommitdiff
path: root/extras/cdrom_id
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2009-11-10 12:32:38 -0500
committerDavid Zeuthen <davidz@redhat.com>2009-11-10 12:32:38 -0500
commit7505831b7ee7b04d84424d2ed306a76abd32871c (patch)
tree30b06a109b360c2ae98e48f07ac661240f6befa9 /extras/cdrom_id
parent86f380dd29249ff2dd7eeb26467e75da6585cec1 (diff)
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>
Diffstat (limited to 'extras/cdrom_id')
-rw-r--r--extras/cdrom_id/cdrom_id.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/extras/cdrom_id/cdrom_id.c b/extras/cdrom_id/cdrom_id.c
index 6ea763b415..2380b158a0 100644
--- a/extras/cdrom_id/cdrom_id.c
+++ b/extras/cdrom_id/cdrom_id.c
@@ -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)