From nobody Wed Feb 23 18:59:16 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 EAA9719D1D8D for ; Wed, 23 Feb 2022 18:59:16 +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 4K3lh45ZjVz3lhd for ; Wed, 23 Feb 2022 18:59:16 +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 9FEBE1D89A for ; Wed, 23 Feb 2022 18:59:16 +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 21NIxGq5032481 for ; Wed, 23 Feb 2022 18:59:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21NIxGl1032480 for standards@FreeBSD.org; Wed, 23 Feb 2022 18:59:16 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, 23 Feb 2022 18:59:16 +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=1645642756; 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=X9hLmQv8QcMvWqbGZFzzoQVrF/NMezxXxP79FV78N5g=; b=NswKrheMx3p518dWfguvK57tGEeVbrpaqmKFo1si6jRSYrQFO6XgD0vxUEcHPWtsl1qofo ibo7iEcOIhnUHgHCTqPELXEGVlKwqtNRq1z2bELJ9t7W3nRN0kLotDl5ccOBzPBHP6v5IR cKUVxgepVuN1fpg9x/Y4MC2h4TDznn0MuDPRNRvH27gljXZdfq11vVOiw7+5zG23aFC099 96Dsfsmb4eHmnZ0QdXMXDS9DhQKQKenU1z8DlAtcatGXq8XDis3SFNp5SbxB35vSmu6uGT vWWR34vhNzGN4Cuk8LUyXX/rgno89tGB531LSQYyfXNtRWXPQmYxeOBmlRkjkA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645642756; a=rsa-sha256; cv=none; b=D67o1VNqMdfL+f9HWKnFh6Gyhz1inhPpoQA0DaAs/VjLFtyQXsGrgo6rr3sG2c+4mAaBN+ zDvGyvIRTi1PYrfigruXTQBcVl0Wi+J5HjWLJQugqDFv16yXFXr4JtWwlmSD60bSyM079r 6W6iEU82+HlHhNURjlZd93JR3iOFqTXwc7SVrxUo2sOEaGpqON0mmwKTXr5vHcX5F/22dB 84/YavuVt25/7DCWKU9uZICR+4Yc/NCehKbBKdPxwIjktn/oIqlOsTRq240ZTPFHUF7Gfs 4M0flj/kXHUOpIWD477UDKp7fNXmLdxrxYoyq2+RTR5wTWoXkbu2JMiMjf2IOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D199466 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D97e13037915c22162f199461f56951793= d669f57 commit 97e13037915c22162f199461f56951793d669f57 Author: Cameron Katri AuthorDate: 2022-02-23 18:55:13 +0000 Commit: Kyle Evans CommitDate: 2022-02-23 18:55:13 +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 Differential Revision: https://reviews.freebsd.org/D30012 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.=