1 * Add debian/patches/41_revert_sg_io_eperm_failure.dpatch:
2 - Between 2.01+01a01 and 2.01+01a03, upstream changed the behaviour of
3 SG_IO ioctl()s failing with EPERM; earlier releases ignored it, while
4 the current one aborts the program. While in principle, EPERM checking
5 is a good thing, it breaks burning for non-root users, so revert this
7 - See also http://bugs.debian.org/374685.
9 diff -urNad cdrtools-2.01+01a03~/libscg/scsi-linux-sg.c cdrtools-2.01+01a03/libscg/scsi-linux-sg.c
10 --- cdrtools-2.01+01a03~/libscg/scsi-linux-sg.c 2005-05-16 23:48:37.000000000 +0200
11 +++ cdrtools-2.01+01a03/libscg/scsi-linux-sg.c 2006-08-17 12:01:37.000000000 +0200
13 scglocal(scgp)->isold = 1;
14 return (sg_rwsend(scgp));
16 - if (sp->ux_errno == ENXIO || sp->ux_errno == EPERM ||
17 + if (sp->ux_errno == ENXIO || /* sp->ux_errno == EPERM || */
18 sp->ux_errno == EINVAL || sp->ux_errno == EACCES) {