From owner-freebsd-bugs Fri May 17 4:30:12 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5A13F37B40A for ; Fri, 17 May 2002 04:30:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4HBU2s93422; Fri, 17 May 2002 04:30:02 -0700 (PDT) (envelope-from gnats) Received: from peitho.fxp.org (peitho.fxp.org [209.26.95.40]) by hub.freebsd.org (Postfix) with ESMTP id 020BF37B401 for ; 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" Reply-To: "Chris D.Faulhaber" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/38178: add CDROM env var support to burncd Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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