-- Erik B. Andersen Web: http://www.et.byu.edu/~andersee/ 2485 South State St. email: andersee@et.byu.edu or andersee@debian.org Springville, Ut 84663 phone: (801) 489-1231 --This message was written using 73% post-consumer electrons--
-----Forwarded message from gadio@netvision.net.il (Gadi Oxman)-----
Hi Erik,
I don't know if this is the best way to solve it, but it will probably work for most scenarios.
Bye,
Gadi
--- v2.1.13/linux/drivers/block/ide-cd.c Wed Nov 27 15:31:48 1996 +++ linux/drivers/block/ide-cd.c Thu Nov 28 19:55:08 1996 @@ -1217,7 +1217,7 @@ and we think that the door is presently, lock it again. (The door was probably unlocked via an explicit CDROMEJECT ioctl.) */ - if (CDROM_STATE_FLAGS (drive)->door_locked == 0 && + if (CDROM_STATE_FLAGS (drive)->door_locked == 0 && drive->usage && (pc->c[0] != REQUEST_SENSE && pc->c[0] != ALLOW_MEDIUM_REMOVAL && pc->c[0] != START_STOP)) {