[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:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=128874
Tim.
*/
Makefile
Description: Text document
pgpE53AqyLhax.pgp
Description: PGP signature
- Bad cp -a behaviour,
Tim Waugh <=
- Re: Bad cp -a behaviour, Andreas Schwab, 2004/08/07
- Re: Bad cp -a behaviour, Philip Rowlands, 2004/08/07
- Re: Bad cp -a behaviour, Tim Waugh, 2004/08/10
- Re: Bad cp -a behaviour, Philip Rowlands, 2004/08/11
- Re: Bad cp -a behaviour, Tim Waugh, 2004/08/11
- Re: Bad cp -a behaviour, Philip Rowlands, 2004/08/11
- Re: Bad cp -a behaviour, Tim Waugh, 2004/08/11
- Re: Bad cp -a behaviour, Paul Eggert, 2004/08/11
- Re: Bad cp -a behaviour, Tim Waugh, 2004/08/12