Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jun 1995 22:41:28 -0700
From:      Bruce Evans <bde>
To:        cvs-bin, CVS-commiters
Subject:   cvs commit: src/bin/cp utils.c
Message-ID:  <199506140541.WAA10233@freefall.cdrom.com>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506140541.WAA10233>