Subject: CVS commit: src/bin/dd
To: None <source-changes@NetBSD.org>
From: David Sainty <dsainty@netbsd.org>
List: source-changes
Date: 11/15/2003 12:44:54
Module Name:	src
Committed By:	dsainty
Date:		Sat Nov 15 12:44:54 UTC 2003

Modified Files:
	src/bin/dd: dd.c

Log Message:
Avoid corrupting the dd(1) IO streams.  This would happen by accidentally
outputting to the files being manipulated by opening a file in the standard IO
descriptor space.  In particular, an output file unlucky enough to be sitting
on descriptor 2 (stderr) is certain to be corrupted.

Addresses PR bin/8521, and passes the recently committed regression test
"bin/dd".


To generate a diff of this commit:
cvs rdiff -r1.33 -r1.34 src/bin/dd/dd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.