From jedgar@fxp.org  Fri May 17 04:26:21 2002
Return-Path: <jedgar@fxp.org>
Received: from peitho.fxp.org (peitho.fxp.org [209.26.95.40])
	by hub.freebsd.org (Postfix) with ESMTP id 020BF37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 17 May 2002 04:26:21 -0700 (PDT)
Received: by peitho.fxp.org (Postfix, from userid 1000)
	id AA74113669; Fri, 17 May 2002 07:26:19 -0400 (EDT)
Message-Id: <20020517112619.AA74113669@peitho.fxp.org>
Date: Fri, 17 May 2002 07:26:19 -0400 (EDT)
From: Chris D.Faulhaber <jedgar@FreeBSD.org>
Reply-To: Chris D.Faulhaber <jedgar@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: add CDROM env var support to burncd
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         38178
>Category:       bin
>Synopsis:       add CDROM env var support to burncd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 17 04:30:02 PDT 2002
>Closed-Date:    Sun May 04 03:10:15 PDT 2003
>Last-Modified:  Sun May 04 03:10:15 PDT 2003
>Originator:     Chris D. Faulhaber
>Release:        FreeBSD 4.6-PRERELEASE i386
>Organization:
nope
>Environment:
4.6-PRERELEASE #67: Fri May 10 21:43:39 EDT 2002

>Description:

The following patch adds support for the CDROM env var
similiar to cdcontrol(1).

Original request to burncd author on 11 May 2002 has gone
unanswered.

>How-To-Repeat:

>Fix:

Index: burncd.8
===================================================================
RCS file: /home/ncvs/src/usr.sbin/burncd/burncd.8,v
retrieving revision 1.6.2.6
diff -u -r1.6.2.6 burncd.8
--- burncd.8	31 Mar 2002 11:12:18 -0000	1.6.2.6
+++ burncd.8	5 Apr 2002 22:19:37 -0000
@@ -169,6 +169,15 @@
 .Fx
 Ports Collection, is commonly used to create ISO9660 filesystem images
 from a given directory tree.
+.Sh ENVIRONMENT
+The following environment variables affect the execution of
+.Nm :
+.Pp
+.Bl -tag -width CD_DRIVE -compact
+.It Ev CDROM
+The cd device to use if one isn't specified with the
+.Fl f
+flag.
 .Sh BUGS
 Probably, please report when found.
 .Sh HISTORY
Index: burncd.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/burncd/burncd.c,v
retrieving revision 1.10.2.4
diff -u -r1.10.2.4 burncd.c
--- burncd.c	18 Mar 2002 08:40:45 -0000	1.10.2.4
+++ burncd.c	5 Apr 2002 22:19:37 -0000
@@ -74,6 +74,9 @@
 	int block_size = 0, block_type = 0, cdopen = 0;
 	const char *dev = "/dev/acd0c";
 
+	if (getenv("CDROM") != NULL)
+		dev = getenv("CDROM");
+
 	while ((ch = getopt(argc, argv, "def:lmnpqs:tv")) != -1) {
 		switch (ch) {
 		case 'd':


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: jedgar 
Responsible-Changed-When: Fri May 17 05:19:55 PDT 2002 
Responsible-Changed-Why:  
Over to maintainer. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=38178 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Sun May 4 03:08:13 PDT 2003 
State-Changed-Why:  
Fixed in -current (5.1). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38178 
>Unformatted:
