From nobody Wed Mar 09 21:23:03 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 08B2C19F5440 for ; Wed, 9 Mar 2022 21:23:05 +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 4KDQCW3kFGz3nbq for ; Wed, 9 Mar 2022 21:23:03 +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 EA92E1879C for ; Wed, 9 Mar 2022 21:23:02 +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 229LN2wG062746 for ; Wed, 9 Mar 2022 21:23:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 229LN2aB062745 for standards@FreeBSD.org; Wed, 9 Mar 2022 21:23:02 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: Wed, 09 Mar 2022 21:23:03 +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=1646860983; 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=ZLxRY3EJVQU/X666PN67ccOCUHI4skMqmCxk5iP9h5o=; b=HZwtkIaX7rNfq5Rpxpe4CZsJcQyGYt5EwRtR+CBGgZDqJHToE9g6NLS9f+1OtduXVrSnLd y1KzmRzUUmNL/VyuqRCoKun5Or9no26uJga51mXfZimswphN1iitQ6u5u0ftGeftiAfciy c+z0EFq2PEJqLRBEPKNEH3JxlLRXGacYYSO5OPQyjcPDlepmP7tGNzIj405cgiZb9PUuwZ 5rTw5eq0RGQdIxqPfDakxeu4PBA5BltU4WH3wgw9VZ8mn1eyoeZ+eJOwe6KmGRyekiToLL H522vKoGD7p77v256LHrJSwNc3GjNahYhIW/V55Owgs/DuncXHjRVSRU2bMXjQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646860983; a=rsa-sha256; cv=none; b=yB0y1yu6ZCH6DraGTi/eJDNjFoQdzc9KB8YocWTWVtucAx2T0U8nYiMNxvYdtGnt1WDch/ oa3TRGFix13auyberi93SPFNoHe7sjMVxMIGHYLmI8e/bVpHgtf4lDm3AtcBrIdMuGnErL 8wkhofhGSO2u0SFol2sqsLNAHrVPNi9QPflu+q7Dg2nvUBlKocX+YDhJBhQ0xB96x/l2gy fTjIJylo2LxuLWQcIpwu5FoazwoWhzLVAPPtnc/LaKGs9cH4qSv46I8zXS+uZ7Au/1N5xO qyb4dVAs/dQ61RX+cxThL9GUpdbQkFDJFWNVw63TvH0svWi7JDVmq6pkhrEToQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D199466 --- Comment #4 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D44eb8cfdc69bb31f11293a8d4f6f36b60= 8887b64 commit 44eb8cfdc69bb31f11293a8d4f6f36b608887b64 Author: Cameron Katri AuthorDate: 2022-02-23 18:55:13 +0000 Commit: Kyle Evans 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(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=