chiark / gitweb /
cdrom_id: use the old MMC fallback
[elogind.git] / src / udev / cdrom_id / cdrom_id.c
index 93467c2d35b0b95734570536dd8cb996f9ed8e85..33b2bc33317c00c2437c6bbb49f8e32a504df710 100644 (file)
@@ -556,7 +556,7 @@ static int cd_profiles(struct udev *udev, int fd)
         if ((err != 0)) {
                 info_scsi_cmd_err(udev, "GET CONFIGURATION", err);
                 /* handle pre-MMC2 drives which do not support GET CONFIGURATION */
-                if (SK(err) == 0x5 && ASC(err) == 0x20) {
+                if (SK(err) == 0x5 && (ASC(err) == 0x20 || ASC(err) == 0x24)) {
                         log_debug("drive is pre-MMC2 and does not support 46h get configuration command");
                         log_debug("trying to work around the problem");
                         ret = cd_profiles_old_mmc(udev, fd);