]> TLD Linux GIT Repositories - packages/cdrtools.git/blob - cdrtools-revert_sg_io_eperm_failure.patch
- from PLD
[packages/cdrtools.git] / cdrtools-revert_sg_io_eperm_failure.patch
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
6       test for now.
7     - See also http://bugs.debian.org/374685.
8
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
12 @@ -1291,7 +1291,7 @@
13                         scglocal(scgp)->isold = 1;
14                         return (sg_rwsend(scgp));
15                 }
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) {
19                         return (-1);
20                 }