freebsd-src/bin/cp
Dag-Erling Smørgrav ac56b9d83c cp: Split the basic_symlink test case in two.
This test case tests two different things: first, that copying a symlink
results in a file with the same contents as the target of the symlink,
rather than a second symlink, and second, that cp will refuse to copy a
file to itself, or to a link to itself, or a link to its target.  Leave
the first part in basic_symlink, move the second part to a new test case
named samefile, and slightly expand both cases.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D43062
2023-12-14 17:06:57 +01:00
..
tests cp: Split the basic_symlink test case in two. 2023-12-14 17:06:57 +01:00
cp.1 cp: Add -N flag, inspired by NetBSD's similar flag 2023-12-07 13:36:44 -07:00
cp.c cp: Add -N flag, inspired by NetBSD's similar flag 2023-12-07 13:36:44 -07:00
extern.h cp: Add -N flag, inspired by NetBSD's similar flag 2023-12-07 13:36:44 -07:00
Makefile bin: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
utils.c cp: Refactor the core logic. 2023-12-14 00:40:55 +01:00