diff options
author | Pacho Ramos <pacho@gentoo.org> | 2016-08-18 19:33:26 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2016-08-18 19:33:26 +0200 |
commit | 8f2938a48efdf12e2c766c2f7ea64b4de765466f (patch) | |
tree | 7507f190d4e05d5285f39316d351a475abbfb289 /app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.1-noevent.patch | |
parent | www-apache/mod_auth_kerb: Properly provide and apply Fedora patches (#327445) (diff) | |
download | gentoo-8f2938a48efdf12e2c766c2f7ea64b4de765466f.tar.gz gentoo-8f2938a48efdf12e2c766c2f7ea64b4de765466f.tar.bz2 gentoo-8f2938a48efdf12e2c766c2f7ea64b4de765466f.zip |
app-cdr/dvd+rw-tools: Apply more Fedora patches fixing more bugs (#230648 also)
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.1-noevent.patch')
-rw-r--r-- | app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.1-noevent.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.1-noevent.patch b/app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.1-noevent.patch new file mode 100644 index 000000000000..19c8c668869d --- /dev/null +++ b/app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.1-noevent.patch @@ -0,0 +1,19 @@ +diff -up dvd+rw-tools-7.1/transport.hxx.debug dvd+rw-tools-7.1/transport.hxx +--- dvd+rw-tools-7.1/transport.hxx.debug 2012-03-07 10:55:07.167322839 +0100 ++++ dvd+rw-tools-7.1/transport.hxx 2012-03-07 15:44:34.384202747 +0100 +@@ -1795,9 +1795,12 @@ static int handle_events (Scsi_Command & + break; + case 5: ret |= 1<<5; break; // Multiple Initiators + case 6: // Device Busy +- if ((event[4]&0xF)==1 && // Timeout occured +- (event[5]&0x3)!=0) +- { poll(NULL,0,(descr&0xFFFF)*100+100); ++ if ((event[4]&0xF)==1) // Timeout occured ++ { ++ if ((event[5]&0x3)==0) // No Event ++ return 0; // Ready to accept any command ++ ++ poll(NULL,0,(descr&0xFFFF)*100+100); + cmd[0] = 0; // TEST UNIT READY + cmd[5] = 0; + if ((err=cmd.transport())) |