From peter@dataloss.nl  Sun Jun 26 14:07:28 2005
Return-Path: <peter@dataloss.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5C1D516A41C
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Jun 2005 14:07:28 +0000 (GMT)
	(envelope-from peter@dataloss.nl)
Received: from useful.dataloss.nl (useful.dataloss.nl [80.84.249.161])
	by mx1.FreeBSD.org (Postfix) with SMTP id EF33043D48
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Jun 2005 14:07:27 +0000 (GMT)
	(envelope-from peter@dataloss.nl)
Received: (qmail 91043 invoked by uid 1001); 26 Jun 2005 14:07:23 -0000
Message-Id: <20050626140723.91042.qmail@useful.dataloss.nl>
Date: 26 Jun 2005 14:07:23 -0000
From: Peter van Dijk <peter@dataloss.nl>
Reply-To: Peter van Dijk <peter@dataloss.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: burncd doesn't abort on error conditions
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         82667
>Category:       bin
>Synopsis:       burncd doesn't abort on error conditions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 26 14:10:16 GMT 2005
>Closed-Date:    Sun Nov 29 12:40:39 UTC 2009
>Last-Modified:  Sun Nov 29 12:40:39 UTC 2009
>Originator:     Peter van Dijk
>Release:        5.3-RELEASE
>Organization:
-
>Environment:
System: FreeBSD fanta.home.dataloss.nl 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Sat Nov 13 15:12:47 CET 2004     peter@fanta.home.dataloss.nl:/usr/obj/usr/src/sys/FANTA  i386

acd0: CDRW <HL-DT-ST GCE-8320B/1.01> at ata1-master PIO4

>Description:
When multiple commands are given to burncd (for example, one data command
and one fixate command), an error in execution of one command does not
prevent the execution of the next.

Because of this, I ended up with an empty but fixated CD-R :)

>How-To-Repeat:
A command line like the following:
	burncd -f /dev/acd0 data main.iso fixate
issued in a situation where the drive is not completely ready, may result
in a situation where the data-part fails, after which the fixate is attempted,
which succeeds.

>Fix:
Abort when the writing of a data-track fails at 0 bytes.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jh 
State-Changed-When: Sun Nov 29 12:13:56 UTC 2009 
State-Changed-Why:  
burncd(8) should exit if write(2) fails since r186337. See also patches 
in PR bin/123693. 

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