Subject: Re: Copying to devices
To: J.T. Conklin <>
From: J.T. Conklin <>
List: current-users
Date: 07/30/1995 22:26:13
> > If an I/O error occurs upon writing to a file (as opposed to opening it),
> > then cp will remove the file.  This is true even if the file is
> > a special device or named pipe.
> ... Your message reminds me that I should
> confirm that POSIX.2 does not require this "feature" (I don't think it
> does), and arrange to get cp patched.

Sorry to follow up on my own message, but I've read the POSIX.2 spec,
and it seems that cp is not allowed to remove the file if a write err
occurs under any circumstance (cp is supposed to write a diagnostic
and then close the file descriptor).

I'm making a patch now.