ignores command line drive specification
Brought to you by:
thalakan
Ig enviornment variable CDROM is not set, the command
line dtive specification is ignored and a default drive
(/drv/cfrom ..) is
used. The fix to cdctl.c is easy
* Try to find the cdrom device */
if\(argv\[optind\] \!= 0\) \{
cdrom = open\_cdrom\(argv\[optind\]\);
if\(cdrom == -1\) \{
warn\(\_\("can't open %s"\), argv\[optind\]\);
return 1;
\}
// } else { //delete
// cdrom = -1; //delete
// } //delete
} else //add this line
if(getenv("CDROM") != NULL) {
cdrom = open_cdrom(getenv("CDROM"));
if(cdrom == -1) {
warn(_("can't open %s"), getenv("CDROM"));
}
} else {
cdrom = -1;
}
patched cdctl.c