From owner-cvs-bin Tue Jun 13 22:41:32 1995 Return-Path: cvs-bin-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id WAA10243 for cvs-bin-outgoing; Tue, 13 Jun 1995 22:41:32 -0700 Received: (from bde@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id WAA10233 ; Tue, 13 Jun 1995 22:41:28 -0700 Date: Tue, 13 Jun 1995 22:41:28 -0700 From: Bruce Evans Message-Id: <199506140541.WAA10233@freefall.cdrom.com> To: cvs-bin, CVS-commiters Subject: cvs commit: src/bin/cp utils.c Sender: cvs-bin-owner@freebsd.org Precedence: bulk bde 95/06/13 22:41:28 Modified: bin/cp utils.c Log: Don't unlink the target file if the copy failed. This behaviour isn't documented and is incompatible with gnu cp. It has very few good effects (it recovers some disk space) and many bad ones: - special files are unlinked after certain errors. - the data may not be recoverable if the source is a special file or fifo. - unlinking destroys the target attributes as well as the target data. - unlinking doesn't actually remove the target data if the target is multiply linked.