Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jan 2003 21:49:58 +0200 (EET)
From:      K.Oikonomakos@brad.ac.uk (Kyriakos Oikonomakos)
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/47195: burncd(8) -t fixate will write data to cdrom disks despite -t
Message-ID:  <200301181949.h0IJnwl7048898@gothmog.gr>

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

>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




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