If no device is specified, check the CDROM environment variable before

picking the default device.
This commit is contained in:
des 2000-12-18 14:35:54 +00:00
parent 2615d1c940
commit 9f7f4f99d4

View File

@ -197,6 +197,10 @@ int main (int argc, char **argv)
if (argc > 0 && ! strcasecmp (*argv, "help"))
usage ();
if (! cdname) {
cdname = getenv("CDROM");
}
if (! cdname) {
cdname = DEFAULT_CD_DRIVE;
warnx("no CD device name specified, defaulting to %s", cdname);