summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorbouyer <bouyer@pkgsrc.org>2002-05-18 14:52:31 +0000
committerbouyer <bouyer@pkgsrc.org>2002-05-18 14:52:31 +0000
commita8a31aebfa036e551b9b15336a6d50113066076d (patch)
treeb07da22848ee86bf843bdda09b85cfa2f30b5eb7 /sysutils
parentb032c8616ca73d51cbeaaa3c3c1261af6ba5e3a9 (diff)
downloadpkgsrc-a8a31aebfa036e551b9b15336a6d50113066076d.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')
-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);
+ }