chiark / gitweb /
libudev: device - create db file atomically
[elogind.git] / extras / cdrom_id / cdrom_id.c
index 6ea763b415b3fdfca21d0663b162141beafa566c..2380b158a07ece9cb076b3fb82434fd1c9f5b2ff 100644 (file)
@@ -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)