Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 May 2002 07:26:19 -0400 (EDT)
From:      "Chris D.Faulhaber" <jedgar@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/38178: add CDROM env var support to burncd
Message-ID:  <20020517112619.AA74113669@peitho.fxp.org>

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

>Number:         38178
>Category:       bin
>Synopsis:       add CDROM env var support to burncd
>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:   Fri May 17 04:30:02 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>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?20020517112619.AA74113669>