summaryrefslogtreecommitdiff
path: root/sysutils/cdrecord
diff options
context:
space:
mode:
authorbouyer <bouyer>2002-05-18 14:52:31 +0000
committerbouyer <bouyer>2002-05-18 14:52:31 +0000
commit411c6a728c71ab015f688552492ba4d008476492 (patch)
treeb07da22848ee86bf843bdda09b85cfa2f30b5eb7 /sysutils/cdrecord
parent490410050518d380cf14d3b321d6f532325f9ce0 (diff)
downloadpkgsrc-411c6a728c71ab015f688552492ba4d008476492.tar.gz
Don't request data length which are not multiple of 2 bytes for request_sense.
ATAPI being a 16bit bus it can't properly deal with requests which are not multiple of 2 bytes.
Diffstat (limited to 'sysutils/cdrecord')
-rw-r--r--sysutils/cdrecord/patches/patch-aj16
1 files changed, 14 insertions, 2 deletions
diff --git a/sysutils/cdrecord/patches/patch-aj b/sysutils/cdrecord/patches/patch-aj
index 94d21f99ea2..112bf92fa04 100644
--- a/sysutils/cdrecord/patches/patch-aj
+++ b/sysutils/cdrecord/patches/patch-aj
@@ -1,7 +1,7 @@
-$NetBSD: patch-aj,v 1.2 2001/08/07 11:23:57 drochner Exp $
+$NetBSD: patch-aj,v 1.3 2002/05/18 14:52:31 bouyer Exp $
--- cdrecord/scsi_cdr.c.orig Wed Apr 11 00:22:21 2001
-+++ cdrecord/scsi_cdr.c Mon Aug 6 11:14:44 2001
++++ cdrecord/scsi_cdr.c Wed May 15 19:55:52 2002
@@ -271,6 +271,12 @@
request_sense(scgp)
SCSI *scgp;
@@ -23,3 +23,15 @@ $NetBSD: patch-aj,v 1.2 2001/08/07 11:23:57 drochner Exp $
return (0);
}
+@@ -1741,9 +1748,9 @@
+
+ fillbytes(mode, sizeof(mode), '\0');
+ scgp->silent++;
+- if (mode_sense(scgp, mode, 0xFF, 0x3F, current?0:2) < 0) { /* All Pages */
++ if (mode_sense(scgp, mode, 0xFE, 0x3F, current?0:2) < 0) { /* All Pages */
+ fillbytes(mode, sizeof(mode), '\0');
+- if (mode_sense(scgp, mode, 0xFF, 0, current?0:2) < 0) {/* VU (block desc) */
++ if (mode_sense(scgp, mode, 0xFE, 0, current?0:2) < 0) {/* VU (block desc) */
+ scgp->silent--;
+ return (-1);
+ }