Subject: bin/8521: dd(1) corrupts data with stdout/stderr closed
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dave@dtsp.co.nz>
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
>Last-Modified:
>Originator: Dave Sainty
>Organization:
Dynamic Technology Services and Products Ltd (NZ)
>Release: 19990912
>Environment:
System: NetBSD tequila.dave.dtsp.co.nz 1.4K NetBSD 1.4K (TEQUILA) #7: Fri Sep 17 23:43:58 NZST 1999 dave@tequila.dave.dtsp.co.nz:/vol/tequila/userB/u2/NetBSD-current/src/sys/arch/i386/compile/TEQUILA i386
>Description:
dd(1) outputs informational text on completion. If the standard IO
file descriptors are closed the informational text is redirected into
the output steam!!!
>How-To-Repeat:
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)
>Fix:
None provided... It's late :)
>Audit-Trail:
>Unformatted: