diff options
author | mycroft <mycroft@pkgsrc.org> | 2003-09-19 17:49:17 +0000 |
---|---|---|
committer | mycroft <mycroft@pkgsrc.org> | 2003-09-19 17:49:17 +0000 |
commit | 1d5d8c4e8f6da1b1b96188ae43153b7ba5ca13b6 (patch) | |
tree | 9c7a4748520e0266741aa8dcd86e652317f635a8 /sysutils/dvdrecord | |
parent | 2776c6cdeeada299bb3d1cb7ad72a19fc61d669a (diff) | |
download | pkgsrc-1d5d8c4e8f6da1b1b96188ae43153b7ba5ca13b6.tar.gz |
Snarf a patch from cdrecord -- the kernel has already done a REQUEST SENSE, so
use that result.
Diffstat (limited to 'sysutils/dvdrecord')
-rw-r--r-- | sysutils/dvdrecord/patches/patch-ac | 25 |
1 files changed, 25 insertions, 0 deletions
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); + } + |