diff options
author | mycroft <mycroft> | 2003-09-19 17:49:17 +0000 |
---|---|---|
committer | mycroft <mycroft> | 2003-09-19 17:49:17 +0000 |
commit | fa857c81f125d678d16e24027d6b2d6645328a9f (patch) | |
tree | 9c7a4748520e0266741aa8dcd86e652317f635a8 /sysutils/dvdrecord | |
parent | 7973ae3e5aa64e9fbe170da75365f43690e1b712 (diff) | |
download | pkgsrc-fa857c81f125d678d16e24027d6b2d6645328a9f.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); + } + |