aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/dvdisaster
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2012-03-17 19:16:55 +0800
committercrees <crees@FreeBSD.org>2012-03-17 19:16:55 +0800
commit9c57fca5fa29ed5dffc4edca6125248591476d43 (patch)
tree4652704be4c2f463081b760f8ec5673d13e42f26 /sysutils/dvdisaster
parented0e7efcb54fd8cbf74127f2df22fb61aacaabb1 (diff)
downloadfreebsd-ports-gnome-9c57fca5fa29ed5dffc4edca6125248591476d43.tar.gz
freebsd-ports-gnome-9c57fca5fa29ed5dffc4edca6125248591476d43.tar.zst
freebsd-ports-gnome-9c57fca5fa29ed5dffc4edca6125248591476d43.zip
Fix segfault while detecting drives due to 9x changes in CAM
PR: ports/165938 Submitted by: Corey Halpin <chalpin@cs.wisc.edu> (author/maintainer) Also fixes: PR: ports/164464 PR: ports/165787 Feature safe: yes
Diffstat (limited to 'sysutils/dvdisaster')
-rw-r--r--sysutils/dvdisaster/Makefile1
-rw-r--r--sysutils/dvdisaster/files/patch-scsi-freebsd.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/dvdisaster/Makefile b/sysutils/dvdisaster/Makefile
index e7a0615bfbea..56ef2be3fab1 100644
--- a/sysutils/dvdisaster/Makefile
+++ b/sysutils/dvdisaster/Makefile
@@ -7,6 +7,7 @@
PORTNAME= dvdisaster
PORTVERSION= 0.72.3
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= SF \
http://dvdisaster.net/downloads/
diff --git a/sysutils/dvdisaster/files/patch-scsi-freebsd.c b/sysutils/dvdisaster/files/patch-scsi-freebsd.c
new file mode 100644
index 000000000000..a80e53064457
--- /dev/null
+++ b/sysutils/dvdisaster/files/patch-scsi-freebsd.c
@@ -0,0 +1,11 @@
+--- scsi-freebsd.c.orig 2012-03-14 18:59:03.409149568 +0000
++++ scsi-freebsd.c 2012-03-14 19:28:12.104788317 +0000
+@@ -194,7 +194,7 @@
+
+ /* Extract sense data */
+
+- memcpy(sense, &(ccb->csio.sense_data), sizeof(struct scsi_sense_data));
++ memcpy(sense, &(ccb->csio.sense_data), sizeof(Sense));
+
+ if((ccb->ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP)
+ return 0;