artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14f9311
)
Let DVD's play again. Logic reversal prevented copyright reading.
author
krw
<krw@openbsd.org>
Sun, 25 Jul 2010 05:35:42 +0000
(
05:35
+0000)
committer
krw
<krw@openbsd.org>
Sun, 25 Jul 2010 05:35:42 +0000
(
05:35
+0000)
Symptoms noted by oga@. actual bug spotted by dlg@
sys/scsi/cd.c
patch
|
blob
|
history
diff --git
a/sys/scsi/cd.c
b/sys/scsi/cd.c
index
b2c307b
..
9c8eefe
100644
(file)
--- a/
sys/scsi/cd.c
+++ b/
sys/scsi/cd.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: cd.c,v 1.17
8 2010/07/22 15:59:46 matthew Exp $
*/
+/* $OpenBSD: cd.c,v 1.17
9 2010/07/25 05:35:42 krw Exp $
*/
/* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */
/*
@@
-1958,7
+1958,7
@@
dvd_read_copyright(struct cd_softc *sc, union dvd_struct *s)
error = scsi_xs_sync(xs);
scsi_xs_put(xs);
- if (error) {
+ if (error
== 0
) {
s->copyright.cpst = buf[4];
s->copyright.rmi = buf[5];
}