Find a file
Kyle Evans 587dacce01 cp: fix -R recursion detection
The correct logic is a lot simpler than the previous iteration.  We
record the base fts_name to avoid having to worry about whether we
needed the root symlink name or not (as applicable), then we can simply
shift all of that logic to after path translation to make it less
fragile.

If we're copying to DNE, then we'll have swapped out the NULL root_stat
pointer and then attempted to recurse on it.  The previously nonexistent
directory shouldn't exist at all in the new structure, so just back out
from that tree entirely and move on.

The tests have been amended to indicate our expectations better with
subdirectory recursion.  If we copy A to A/B, then we expect to copy
everything from A/B/* into A/B/A/B, with exception to the A that we
create in A/B.

Reviewed by:	bapt
Sponsored by:	Klara, Inc.

(cherry picked from commit f00f8b4fbd)
2022-04-23 22:51:28 -05:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2022-02-09 12:39:50 -05:00
.github/workflows .github: Attempt to un-break Clang 9 action 2021-05-29 04:38:07 +01:00
bin cp: fix -R recursion detection 2022-04-23 22:51:28 -05:00
cddl libctf: Fix recursive descent into anonymous SOU fields 2022-04-14 15:02:44 -04:00
contrib Merge libcxxrt commit 45ca8b1942090226ba9368caeeeabc0d4ee41ad6 2022-04-19 20:19:52 +02:00
crypto ssh-agent: move -x description to correct spot in man page 2022-04-19 20:30:51 -04:00
etc libsysdecode: Add regression tests for sysdecode_cap_rights(3) 2022-04-22 10:36:37 -04:00
gnu Bump shared library versions after ncurses bump in 13. 2021-02-04 17:51:45 -08:00
include Install unwind.h into /usr/include 2022-02-20 13:29:44 +01:00
kerberos5 pkgbase: Create a FreeBSD-kerberos package 2022-01-05 18:23:50 +01:00
lib libsysdecode: Add regression tests for sysdecode_cap_rights(3) 2022-04-22 10:36:37 -04:00
libexec mountd: Delay starting mountd until after mountlate 2022-04-23 15:21:45 -07:00
release Remove "/dev/" from geom name in gpart add command. 2022-03-22 21:28:52 -04:00
rescue Fix building rescue/rescue when sanitizers are enabled 2021-08-05 09:59:51 +01:00
sbin fsck_ffs(8): Fix a typo in a source code comment 2022-04-14 08:16:23 +02:00
secure ssh: use standalone config file for security key support 2022-04-15 12:30:21 -04:00
share tslog(4): Fix a typo in the manual page 2022-04-23 08:55:04 +02:00
stand libsa: Fix a typo in a panic message 2022-04-23 08:56:02 +02:00
sys cam: don't send scsi commands on shutdown when reboot method RB_NOSYNC 2022-04-23 19:03:22 -04:00
targets Fix bootstrapping to actually build lldb-tblgen for later use 2021-09-07 13:08:18 +01:00
tests path_test: Correct the kevent test 2022-04-20 10:15:06 -04:00
tools ctf: Import ctf.h from OpenBSD 2022-04-06 20:30:44 -04:00
usr.bin sed(1): Fix a typo in the manual page 2022-04-23 08:54:44 +02:00
usr.sbin fstyp(8): Fix a typo in a source code comment 2022-04-14 07:59:27 +02:00
.arcconfig arcconfig: add callsign again 2020-11-23 04:39:29 +00:00
.arclint
.cirrus.yml Cirrus-CI: add a manual amd64-gcc9 build and smoketest job 2022-02-22 14:53:02 -05:00
.clang-format clang-format: Add bitset loop macros 2021-11-01 09:20:11 -04:00
.gitattributes
.gitignore add exuberant ctags tags file to gitignore 2022-01-11 15:25:37 +02:00
COPYRIGHT copyrights: Happy New Year 2021 2020-12-31 10:29:44 -05:00
LOCKS
MAINTAINERS Add a pointer to csprng@ for the CSPRNG driver. This is enforced anyway by 2020-09-01 08:02:12 +00:00
Makefile Fix 'make bmake' top-level bootstrapping. 2021-12-21 14:44:51 +01:00
Makefile.inc1 installworld: handle ldd including preloaded objects 2022-04-03 20:40:31 -04:00
Makefile.libcompat Prefer MK_SSP=no to SSP_CFLAGS= 2021-08-11 13:56:28 -03:00
Makefile.sys.inc
ObsoleteFiles.inc Install unwind.h into /usr/include 2022-02-20 13:29:44 +01:00
README README.md: update gnu directory description 2021-12-19 21:01:53 -05:00
README.md README.md: update gnu directory description 2021-12-19 21:01:53 -05:00
RELNOTES Add release note about change to lowest address in IPv4 (sub)net. 2022-04-04 17:05:57 -05:00
UPDATING UPDATING: Remove a double word in an entry 2022-04-14 08:05:15 +02:00

FreeBSD Source:

This is the top level of the FreeBSD source directory. This file was last revised on: FreeBSD

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html, and https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html for more information, including setting make(1) variables.

Source Roadmap:

bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

gnu		Commands and libraries under the GNU General Public License
		(GPL) or Lesser General Public License (LGPL).  Please see
		gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

stand		Boot loader sources.

sys		Kernel sources.

sys/<arch>/conf Kernel configuration files. GENERIC is the configuration
		used in release builds. NOTES contains documentation of
		all possible entries.

tests		Regression tests which can be run by Kyua.  See tests/README
		for additional information.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see:

https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html