freebsd-src/bin
Dag-Erling Smørgrav d002316fd7 cp: Refactor the core logic.
Rewrite `copy_file()` so the lflag and sflag are handled as early as
possible instead of constantly checking that they're not set and then
handling them at the end.  This also opens the door to changing the
failure logic at some future point (for instance, we might decide to
fall back to copying if `errno` indicates that the file system does not
support links).

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	kevans, allanjude
Differential Revision:	https://reviews.freebsd.org/D43055
2023-12-14 00:40:55 +01:00
..
cat bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
chflags Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
chio Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
chmod Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
cp cp: Refactor the core logic. 2023-12-14 00:40:55 +01:00
cpuset Use proper convention for relative path linking 2023-08-18 04:20:32 -07:00
csh bin: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
date bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
dd bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
df Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
domainname Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
echo Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
ed bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
expr Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
freebsd-version Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
getfacl bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
hostname Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
kenv bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
kill Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
ln Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
ls bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
mkdir Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
mv Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
nproc nproc.1: Fix "first appeared in" details 2023-06-02 18:53:55 +02:00
pax bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
pkill bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
ps bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
pwait pwait.1: add missing prompt and command in examples 2023-11-27 10:59:52 -06:00
pwd Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
realpath bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
rm Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
rmail bin: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
rmdir Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
setfacl bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
sh bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
sleep Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
stty bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
sync Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
test bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
timeout Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
uuidgen bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
Makefile bin: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
Makefile.inc bin: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00