OPNsense - FreeBSD source
Find a file
Dag-Erling Smørgrav 82fc0d09e8 cp: Partly restore symlink folllowing.
* As a general rule, follow symbolic links in the destination as long
  as the target is within the destination hierarchy.
* As a special case, allow the destination itself to be a symbolic
  link, and even a dead one (in which case we create the target).
* The file-to-file case remains unrestricted.

Currently, if a symlink we aren't allowed to follow is encountered,
cp will behave just like it would if the file was not writable.  We
should consider whether it would be better to replace the offending
link instead.

Fixes:		0729d1e8fd
MFC after:	never
Relnotes:	yes
Sponsored by:	Klara, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D50093
2025-05-06 19:11:44 +02:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github github: Fix checklist action 2025-04-28 15:27:29 -06:00
bin cp: Partly restore symlink folllowing. 2025-05-06 19:11:44 +02:00
cddl add packages for libufs, libzfs 2025-05-05 16:39:25 +01:00
contrib MFV: xz 5.8.1. 2025-05-04 00:06:22 -07:00
crypto OpenSSH: Regen config.h for DSA retirement 2025-04-15 14:15:33 -04:00
etc traceroute: add tests 2025-05-05 22:47:58 +01:00
gnu Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
include include/paths.h: add _PATH_NOSHUTDOWN 2025-05-05 19:04:22 +03:00
kerberos5 kerberos5, libcom_err, others: append to LDFLAGS instead of replacing 2025-04-05 14:19:57 -07:00
lib link_addr_test: use <cstddef>, not <sys/stddef.h> 2025-05-06 15:49:11 +01:00
libexec mountd, showmount: move to the nfs package 2025-05-05 23:14:47 +01:00
release release/pkg-stage: Stop creating pkg.txz symlink 2025-05-06 08:04:42 -04:00
rescue nvmf: Switch several ioctls to using nvlists 2024-12-30 13:52:21 -05:00
sbin shutdown(8): refuse to run if /var/run/noshutdown is present 2025-05-05 19:04:22 +03:00
secure libcrypto: move engines and modules to openssl-lib 2025-05-05 22:49:57 +01:00
share rc.conf.5: add a missing word in the description of $ipv6_enable 2025-05-06 09:46:47 +01:00
stand stand: Enable Spleen 32x64 font in the bootloader 2025-05-06 11:50:28 -04:00
sys vm_page: bump __FreeBSD_version for commit c8d56817b8 2025-05-06 11:04:32 -05:00
targets gvinum(8): Remove userland tool for managing vinum volumes 2025-01-23 11:20:43 -05:00
tests bridge: allow IP addresses on members to be disabled 2025-05-05 22:47:36 +01:00
tools cross-build: Provide real fflagstostr/strtofflags on Linux 2025-05-06 17:58:10 +01:00
usr.bin xinstall: Don't use UF_SETTABLE to infer whether st_flags is present 2025-05-06 17:58:10 +01:00
usr.sbin makefs: Support st_flags even on Linux 2025-05-06 17:58:09 +01:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml .cirrus.yml: Switch image to 14 2025-05-02 00:56:46 +02:00
.clang-format clang-format: Minor tweaks 2024-04-30 17:33:43 -04:00
.git-blame-ignore-revs .git-blame-ignore-revs: queue(3): Single space after all #define 2025-04-28 14:22:10 +02:00
.gitattributes Remove SVN related Git attributes 2023-12-26 10:28:28 -07:00
.gitignore .gitignore: add sys/*/compile 2024-02-02 09:20:36 -07:00
.mailmap mailmap: Translate my personal address 2024-06-22 08:57:56 +02:00
CONTRIBUTING.md CONTRIBUTING.md/style: spring cleaning 2024-05-10 15:07:03 -06:00
COPYRIGHT copyright: Happy New Year 2025 2025-01-01 00:04:28 +00:00
LOCKS Update LOCKS for Git 2023-12-26 10:28:25 -07:00
MAINTAINERS man filesystems: fix more xrefs after move to s4 2024-06-27 18:32:05 -06:00
Makefile universe: Update the default GCC toolchain to GCC 14 2025-03-03 11:51:53 -05:00
Makefile.inc1 Makefile.inc1: Let the buildetc target run outside of etc 2025-04-24 14:32:41 +00:00
Makefile.libcompat Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc ObsoleteFiles.inc: Remove audio(8) files after rename to sndctl(8) 2025-05-05 21:27:45 +02:00
README.md Update README.md to add pointer to release page. 2024-05-09 20:40:46 -06:00
RELNOTES RELNOTES: Fix typo 2025-05-05 20:43:16 +02:00
UPDATING UPDATING: Strengthen recommendations 2025-05-05 12:37:23 -04:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

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), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

For official FreeBSD bootable images, see the release page.

Source Roadmap:

Directory Description
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 and gnu/COPYING.LIB 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 (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
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 FreeBSD Handbook.