]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cp: Make -P work without -R as per POSIX
authorCameron Katri <me@cameronkatri.com>
Wed, 23 Feb 2022 18:55:13 +0000 (12:55 -0600)
committerKyle Evans <kevans@FreeBSD.org>
Wed, 9 Mar 2022 21:22:02 +0000 (15:22 -0600)
commit44eb8cfdc69bb31f11293a8d4f6f36b608887b64
tree50e0ed5fb14f2308f921107985ab7de3cafe3726
parentf8e07f2f968587e58e20755b4aa5c90a0a09aec3
cp: Make -P work without -R as per POSIX

According to POSIX, cp should allow the `-P` flag to work whether `-R`
is specified or not.  Currently, the `-P` option only works along with
`-R`.

PR: 199466

(cherry picked from commit 97e13037915c22162f199461f56951793d669f57)
bin/cp/cp.1
bin/cp/cp.c
bin/cp/tests/cp_test.sh