summaryrefslogtreecommitdiff
path: root/usr.sbin/cdcontrol/cdcontrol.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2000-12-18 14:35:54 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2000-12-18 14:35:54 +0000
commit9dd4b5a781c60d169e5742910dc26344df1e4cf3 (patch)
treeeaa7f35eb9c883dd1fdf0b8073953799cc5e90cf /usr.sbin/cdcontrol/cdcontrol.c
parent5078fb0b2a8d0a6f49c1f0e6d9785f33bd7c1b91 (diff)
downloadsrc-test2-9dd4b5a781c60d169e5742910dc26344df1e4cf3.tar.gz
src-test2-9dd4b5a781c60d169e5742910dc26344df1e4cf3.zip
Notes
Diffstat (limited to 'usr.sbin/cdcontrol/cdcontrol.c')
-rw-r--r--usr.sbin/cdcontrol/cdcontrol.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/cdcontrol/cdcontrol.c b/usr.sbin/cdcontrol/cdcontrol.c
index 0161bdd2a90e..7af88374e04c 100644
--- a/usr.sbin/cdcontrol/cdcontrol.c
+++ b/usr.sbin/cdcontrol/cdcontrol.c
@@ -198,6 +198,10 @@ int main (int argc, char **argv)
usage ();
if (! cdname) {
+ cdname = getenv("CDROM");
+ }
+
+ if (! cdname) {
cdname = DEFAULT_CD_DRIVE;
warnx("no CD device name specified, defaulting to %s", cdname);
}