chiark / gitweb /
cdrom_id: Do not ignore errors from scsi_cmd_run()
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 15 Apr 2010 06:56:48 +0000 (08:56 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 15 Apr 2010 19:29:17 +0000 (21:29 +0200)
scsi_cmd_run() can return positive error messages if we have CHECK_CONDITION
set and get the error code from the SCSI command result. So check the result
for non-zero, not for being negative.

This should fix another cause for "phantom" media in empty CD-ROM drives.

Thanks to Mike Brudevold <mike@brudevold.com> for spotting this!

https://launchpad.net/bugs/562978


No differences found