Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jan 2000 17:04:47 +0100 (CET)
From:      Alexander Langer <alex@cichlids.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/16007: cdcontrol(1) defaulting do /dev/cdrom instead of /dev/cd0c
Message-ID:  <200001091604.RAA06356@cichlids.cichlids.com>

next in thread | raw e-mail | index | archive | help

>Number:         16007
>Category:       bin
>Synopsis:       cdcontrol(1) defaulting do /dev/cdrom instead of /dev/cd0c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan  9 08:10:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Langer
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
none
>Environment:

-current

>Description:

Since almost every program I know uses /dev/cdrom as default path to access
the cd-rom, I think cdcontrol(1) should do, too.
Acutally, it uses /dev/cd0c, which is somehow uncommon.

Attached is the small patch to fix it. 

Comments?

>How-To-Repeat:

$ cdcontrol play

>Fix:

in /usr/src/usr.sbin/cdcontrol

--- cdcontrol.c.old	Sun Jan  9 16:59:57 2000
+++ cdcontrol.c	Sun Jan  9 16:59:48 2000
@@ -46,7 +46,7 @@
 #define ASTS_VOID       0x15  /* No current audio status to return */
 
 #ifndef DEFAULT_CD_DRIVE
-#  define DEFAULT_CD_DRIVE  "/dev/cd0c"
+#  define DEFAULT_CD_DRIVE  "/dev/cdrom"
 #endif
 
 #ifndef DEFAULT_CD_PARTITION

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001091604.RAA06356>