From 1d5d8c4e8f6da1b1b96188ae43153b7ba5ca13b6 Mon Sep 17 00:00:00 2001 From: mycroft Date: Fri, 19 Sep 2003 17:49:17 +0000 Subject: Snarf a patch from cdrecord -- the kernel has already done a REQUEST SENSE, so use that result. --- sysutils/dvdrecord/patches/patch-ac | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 sysutils/dvdrecord/patches/patch-ac (limited to 'sysutils/dvdrecord') diff --git a/sysutils/dvdrecord/patches/patch-ac b/sysutils/dvdrecord/patches/patch-ac new file mode 100644 index 00000000000..240b9e55520 --- /dev/null +++ b/sysutils/dvdrecord/patches/patch-ac @@ -0,0 +1,25 @@ +$NetBSD: patch-ac,v 1.1 2003/09/19 17:49:17 mycroft Exp $ + +--- cdrecord/scsi_cdr.c.orig 2003-06-01 16:10:01.000000000 +0000 ++++ cdrecord/scsi_cdr.c 2003-09-01 03:10:45.000000000 +0000 +@@ -263,6 +263,12 @@ + + EXPORT int request_sense(SCSI *scgp) + { ++ ++ #ifdef __NetBSD__ ++ /* request sense already done by kernel */ ++ scg_prsense((Uchar *)scgp->scmd->u_sense.cmd_sense, ++ scgp->scmd->sense_count); ++ #else + char sensebuf[CCS_SENSE_LEN]; + register struct scg_cmd *scmd = scgp->scmd; + +@@ -282,6 +288,7 @@ + if (scg_cmd(scgp) < 0) + return (-1); + scg_prsense((Uchar *)sensebuf, CCS_SENSE_LEN - scg_getresid(scgp)); ++#endif + return (0); + } + -- cgit v1.2.3