1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 23:51:28 +03:00
systemd/extras/cdrom_id
Martin Pitt 58e178894b cdrom_id: Do not ignore errors from scsi_cmd_run()
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
2010-04-15 21:29:17 +02:00
..
.gitignore extras: ignore built and generated files 2007-11-08 00:13:40 +01:00
60-cdrom_id.rules replace "add|change" with "!remove" 2010-04-12 16:52:41 +02:00
cdrom_id.c cdrom_id: Do not ignore errors from scsi_cmd_run() 2010-04-15 21:29:17 +02:00