Subject: bin/8521: dd(1) corrupts data with stdout/stderr closed
To: None <>
From: None <>
List: netbsd-bugs
Date: 09/30/1999 04:35:45
>Number:         8521
>Category:       bin
>Synopsis:       dd(1) corrupts data with stdout/stderr closed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 30 04:35:00 1999
>Originator:     Dave Sainty
Dynamic Technology Services and Products Ltd (NZ)
>Release:        19990912
System: NetBSD 1.4K NetBSD 1.4K (TEQUILA) #7: Fri Sep 17 23:43:58 NZST 1999 i386

	dd(1) outputs informational text on completion.  If the standard IO
	file descriptors are closed the informational text is redirected into
	the output steam!!!

	dd bs=16384 count=64 if=/dev/zero of=test 2>&- >&-
	ls -l test
	-rw-------  1 dave  user  1048665 Sep 30 23:14 test
	tail -c -89 test
	64+0 records in
	64+0 records out
	1048576 bytes transferred in 1 secs (1048576 bytes/sec)

	None provided...  It's late :)