ba9b350189
Changes: * Thu Feb 02 2006 - Release of a GPL compliant 2.01.01a05-ossdvd patch. This patch is for cdrtools-2.01.01a05.tar.bz2 and is adjusted to work with linux kernel 2.6.12 or higher and can be compiled with gcc-4.0.x. The rawio patch using libcap has been migrated to cdrtools-2.01.01a05-rawio.patch.bz2 . The patch called cdrtools-2.01.01-scsibuf.patch.bz has become redundant, as this has been integrated inside cdrtools-2.01.01a05.tar.bz2 . RPMS and SRPMS have been updated for mandriva 2006.0. The order of applying patches is now : 1. cdrtools-2.01.01a05-ossdvd.patch.bz2 .ossdvd 2. cdrtools-2.01.01a01-DVD-speed.patch.bz2 .dvd-speed 3. cdrtools-2.01.01a05-rawio.patch.bz2 .rawio 4. cdrtools-2.01.01a01-scanbus.patch.bz2 .scanbus Warly's Cdrecord DVD patch and others can now be found on http://people.mandriva.com/~warly/files/cdrtools/
25 lines
713 B
Text
25 lines
713 B
Text
$NetBSD: patch-aj,v 1.3 2006/02/04 12:05:17 wiz Exp $
|
|
|
|
--- cdrecord/scsi_cdr.c.orig 2004-05-24 22:36:01.000000000 +0000
|
|
+++ cdrecord/scsi_cdr.c
|
|
@@ -318,7 +318,11 @@ request_sense(scgp)
|
|
char sensebuf[CCS_SENSE_LEN];
|
|
register struct scg_cmd *scmd = scgp->scmd;
|
|
|
|
-
|
|
+#ifdef __NetBSD__
|
|
+ /* request sense already done by kernel */
|
|
+ scg_prsense((Uchar *)scgp->scmd->u_sense.cmd_sense,
|
|
+ scgp->scmd->sense_count);
|
|
+#else
|
|
fillbytes((caddr_t)scmd, sizeof (*scmd), '\0');
|
|
scmd->addr = sensebuf;
|
|
scmd->size = sizeof (sensebuf);
|
|
@@ -334,6 +338,7 @@ request_sense(scgp)
|
|
if (scg_cmd(scgp) < 0)
|
|
return (-1);
|
|
scg_prsense((Uchar *)sensebuf, CCS_SENSE_LEN - scg_getresid(scgp));
|
|
+#endif
|
|
return (0);
|
|
}
|
|
|