From nobody Mon Apr 25 00:04:12 2022 X-Original-To: standards@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1D59E1A80A4B for ; Mon, 25 Apr 2022 00:04:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KmlcD6McXz3k3h for ; Mon, 25 Apr 2022 00:04:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B8891105D7 for ; Mon, 25 Apr 2022 00:04:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 23P04CR4099012 for ; Mon, 25 Apr 2022 00:04:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23P04CWE099011 for standards@FreeBSD.org; Mon, 25 Apr 2022 00:04:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 199466] cp(1) should accept -P without -R as well per POSIX.1-2008 or like GNU cp Date: Mon, 25 Apr 2022 00:04:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kevans@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650845052; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SfY221Q7ZmWCRGwuo4xN7WwZ4/vAPJD5fXxkC2Mwdf4=; b=NWU8XR6QONxGXLAa6MBzfeLBTg83E8Gd6Oqzx7GFbie0pcgb3lMsG5qTjV/G4WlfIsO0Yk qOpRCuoeC7DnRaQtOrwg7wbkg5g0FdM8P3kMX6j+gN3nSTty7pr2SylsPaPYeH8KNJvTKR jvpxVsVo9OvsMRpvyXsbBUutGFZdc8ZpryQJcd1fKxoqSql1+BuYAiX/ZFAHncSixKoduB jK+X1COMAwueGe6cVC8TKptrq/lA5ankfCswzfyNGuDIQETkpP8/XZtwCoVbkj+OcIG71u 5sqtQFdr8PbyvxtsA+r4XLMh0JCfAUe6ZHzORlEWNqU5SWXrJUWeMQJYKpsiVQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650845052; a=rsa-sha256; cv=none; b=Ewl0x6V2vSeJql+8gU5jy+kLQXCkIyMphICNYgYtR3NUR5w8+SoHV19vxpco/BOzpAc11q X2gPV4Ww5ojbJ+tnDPzFxURHii2h35j2VGS12WqPN90fPA18F2IiXelX8SzftjnYXprKiN JpxVCBzCo2ULE7kkg3AUfJUqsfhdfhz41xRjCOMv8+gzd5nw2SlEjtZH4+J3QQowFn+WFV vjtypa15CYJzNioC9BNdr/hvck42ZIpFt+i0sGmKBBLR+8zcXBPIqZBIXL6MVRHFiU/o0g RKIZDhblPuNoSusGSoKNuXqHdNeLYZwCmnh1gyqBdo0Kg3+7iPNTqftyp9A7rw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D199466 --- Comment #5 from commit-hook@FreeBSD.org --- A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D19413ce66cc02d676e0778eb9519284e4= 7d7d8e1 commit 19413ce66cc02d676e0778eb9519284e47d7d8e1 Author: Cameron Katri AuthorDate: 2022-02-23 18:55:13 +0000 Commit: Kyle Evans CommitDate: 2022-04-25 00:02:30 +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 Reviewed by: kevans (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(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=