[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bad cp -a behaviour

From: Tim Waugh
Subject: Bad cp -a behaviour
Date: Tue, 3 Aug 2004 14:49:49 +0100
User-agent: Mutt/1.4.1i

When using 'cp -a' to copy a directory structure, it has some
unexpected behaviour.  See the attached Makefile, which compares the
behaviour between tar, cpio, and cp.

The problem seems to be that when a destination file is written it is
done so by opening the file without removing it first.  If it is a
hardlink to a previous destination file from the same command it will
be overwritten.

The original bug report is here:



Attachment: Makefile
Description: Text document

Attachment: pgpE53AqyLhax.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]