SOURCES: cdrtools-revert_sg_io_eperm_failure.patch (NEW) - from ub...

baggins baggins at pld-linux.org
Wed Mar 21 16:45:50 CET 2007


Author: baggins                      Date: Wed Mar 21 15:45:50 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- from ubuntu, description in patch

---- Files affected:
SOURCES:
   cdrtools-revert_sg_io_eperm_failure.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/cdrtools-revert_sg_io_eperm_failure.patch
diff -u /dev/null SOURCES/cdrtools-revert_sg_io_eperm_failure.patch:1.1
--- /dev/null	Wed Mar 21 16:45:50 2007
+++ SOURCES/cdrtools-revert_sg_io_eperm_failure.patch	Wed Mar 21 16:45:45 2007
@@ -0,0 +1,20 @@
+  * Add debian/patches/41_revert_sg_io_eperm_failure.dpatch:
+    - Between 2.01+01a01 and 2.01+01a03, upstream changed the behaviour of
+      SG_IO ioctl()s failing with EPERM; earlier releases ignored it, while
+      the current one aborts the program. While in principle, EPERM checking
+      is a good thing, it breaks burning for non-root users, so revert this
+      test for now.
+    - See also http://bugs.debian.org/374685.
+
+diff -urNad cdrtools-2.01+01a03~/libscg/scsi-linux-sg.c cdrtools-2.01+01a03/libscg/scsi-linux-sg.c
+--- cdrtools-2.01+01a03~/libscg/scsi-linux-sg.c	2005-05-16 23:48:37.000000000 +0200
++++ cdrtools-2.01+01a03/libscg/scsi-linux-sg.c	2006-08-17 12:01:37.000000000 +0200
+@@ -1291,7 +1291,7 @@
+ 			scglocal(scgp)->isold = 1;
+ 			return (sg_rwsend(scgp));
+ 		}
+-		if (sp->ux_errno == ENXIO || sp->ux_errno == EPERM ||
++		if (sp->ux_errno == ENXIO || /* sp->ux_errno == EPERM || */
+ 		    sp->ux_errno == EINVAL || sp->ux_errno == EACCES) {
+ 			return (-1);
+ 		}
================================================================


More information about the pld-cvs-commit mailing list