[Bug 199466] cp(1) should accept -P without -R as well per POSIX.1-2008 or like GNU cp

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 09 Mar 2022 21:23:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199466

--- Comment #4 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=44eb8cfdc69bb31f11293a8d4f6f36b608887b64

commit 44eb8cfdc69bb31f11293a8d4f6f36b608887b64
Author:     Cameron Katri <me@cameronkatri.com>
AuthorDate: 2022-02-23 18:55:13 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2022-03-09 21:22:02 +0000

    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             | 16 ++++++++++++----
 bin/cp/cp.c             | 13 ++++++++-----
 bin/cp/tests/cp_test.sh | 11 +++++++++++
 3 files changed, 31 insertions(+), 9 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.