From owner-freebsd-bugs Sat Jan 18 12: 0:25 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5849537B401 for ; Sat, 18 Jan 2003 12:00:23 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0F9B43E4A for ; Sat, 18 Jan 2003 12:00:21 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h0IK0KNS023158 for ; Sat, 18 Jan 2003 12:00:20 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h0IK0KSP023157; Sat, 18 Jan 2003 12:00:20 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 182DC37B401 for ; Sat, 18 Jan 2003 11:50:06 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5950F43ED8 for ; Sat, 18 Jan 2003 11:50:04 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b175.otenet.gr [212.205.244.183]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h0IJo1Sa014127 for ; Sat, 18 Jan 2003 21:50:01 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id h0IJnwiM048899 for ; Sat, 18 Jan 2003 21:49:58 +0200 (EET) (envelope-from giorgos@gothmog.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id h0IJnwl7048898; Sat, 18 Jan 2003 21:49:58 +0200 (EET) (envelope-from giorgos) Message-Id: <200301181949.h0IJnwl7048898@gothmog.gr> Date: Sat, 18 Jan 2003 21:49:58 +0200 (EET) From: K.Oikonomakos@brad.ac.uk (Kyriakos Oikonomakos) Reply-To: Giorgos Keramidas To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/47195: burncd(8) -t fixate will write data to cdrom disks despite -t 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: 47195 >Category: bin >Synopsis: burncd(8) -t fixate will write data to cdrom disks despite -t >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 18 12:00:20 PST 2003 >Closed-Date: >Last-Modified: >Originator: Kyriakos Oikonomakos >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD gothmog.gr 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sat Jan 18 03:22:26 EET 2003 >Description: Burncd makes modifications to cdroms when 'fixate' is specified and -t is used. This can result in empty cdroms being "fixated" and then be useless. >How-To-Repeat: # burncd -t -d /dev/acd0c fixate >Fix: Index: burncd.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/burncd/burncd.c,v retrieving revision 1.33 diff -u -r1.33 burncd.c --- burncd.c 30 Dec 2002 10:57:41 -0000 1.33 +++ burncd.c 18 Jan 2003 19:48:53 -0000 @@ -297,7 +297,7 @@ else do_TAO(fd, test_write, preemp, dvdrw); } - if (fixate && !dao) { + if (!test_write && fixate && !dao) { if (!quiet) fprintf(stderr, "fixating CD, please wait..\n"); if (ioctl(fd, CDRIOCFIXATE, &multi) < 0) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message