From nobody Mon Jan 03 16:43:47 2022 X-Original-To: dev-commits-src-all@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 37A261930101; Mon, 3 Jan 2022 16:43:48 +0000 (UTC) (envelope-from git@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 4JSM5H6hzXz4gny; Mon, 3 Jan 2022 16:43:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 B9D606CE; Mon, 3 Jan 2022 16:43:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 203GhlKC092265; Mon, 3 Jan 2022 16:43:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 203Ghlx1092264; Mon, 3 Jan 2022 16:43:47 GMT (envelope-from git) Date: Mon, 3 Jan 2022 16:43:47 GMT Message-Id: <202201031643.203Ghlx1092264@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 1a0a41b10566 - main - ar: accept but ignore 'T' option List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1a0a41b10566e75e77e7efbc8475622b6a37ffbf Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641228228; 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; bh=HkEgSWVvhEeA1SyRLXlMtwayM4fNEYsOi4nYfQ/3Pd4=; b=KWJ5Ub5crv5pIdWYwnbWv90i7w4tT+/1QZkkQ14I3VT9rhaq35q9gvpFylxYsNYn7wOVAI Pv3Rtw6EwSPBcX2CPHQm0+xnV03f+LQcdkJm28AU9JZ5VDw65NQl+OxSwNSEc/qHSyH5ke leExrvUpEfVgf4a6J7FHWjMx3VFpkF6nzsk914SPvCvEqhFMUmNu+/7K7SKGVLxlWoMqa+ mf0aM9tcjcimrB5Gjw0IWfLjYe0ZDK9pCOtO0z5j+Qx1Hi2LQObok8wsOibs3o5rN1yG7z 5BZhiUBGEOf97ONT8C8NpaRUrq41TjjDT2zcBCFrn/XvjTOIvfWIEgfviUL1yg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641228228; a=rsa-sha256; cv=none; b=SEvB/BsRwtNIi47fbukoQ++0EnD5AxdqhOeOyjGJhZ1aRi69hVd5VjnqiklnttoPSwD5VO f+Ju96Q01ckz4Ks1GiJukGQLxzXWVGJPTR77XcuqSiVRKC26XPNA4Pzj9r/lyrZJ7/Ex46 N0Pp1yb+6/mdsqZhUW+kBDR8Kj2ADw6MCijwQnFCVnDoSWwZyUEorBGKz2k6wXK+UbJa9m XDbWkzUHx5PuypKAsS1uly/kEHe5BvtImzhjt3MyYvH8lJQdVBzqwA5XH0anXvh0MtVYfW pxyIUdpQHiz3pWjPISWKwvcHPl3kIBSntYh8TySsmc/Qh3lhnLnj5v7HR0NxbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=1a0a41b10566e75e77e7efbc8475622b6a37ffbf commit 1a0a41b10566e75e77e7efbc8475622b6a37ffbf Author: Ed Maste AuthorDate: 2022-01-03 16:32:52 +0000 Commit: Ed Maste CommitDate: 2022-01-03 16:42:59 +0000 ar: accept but ignore 'T' option In previous versions of BSD ar -T was an alias for -f -- use only the first 15 characters of archive member names. In GNU ar and LLVM ar -T creates a thin archive. The -f / old BSD ar -T functionality is not particularly useful, and ignoring -T still results in a usable and compatible (but not thin) archive. An exp-run found a few ports invoking ar -T but they all expect thin archives. In addition, -T will be used to specify thin archives after a migration to LLVM-ar. PR: 260523 [exp-run] Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33553 --- usr.bin/ar/ar.1 | 5 ++--- usr.bin/ar/ar.c | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/usr.bin/ar/ar.1 b/usr.bin/ar/ar.1 index ce0dab1c5af7..fb3f4f255a23 100644 --- a/usr.bin/ar/ar.1 +++ b/usr.bin/ar/ar.1 @@ -23,7 +23,7 @@ .\" .\" $FreeBSD$ .\" -.Dd December 29, 2021 +.Dd January 3, 2022 .Dt AR 1 .Os .Sh NAME @@ -314,8 +314,7 @@ List the files specified by arguments in the order in which they appear in the archive, one per line. If no files are specified, all files in the archive are listed. .It Fl T -Deprecated alias for -.Fl f . +This option is accepted but ignored. In other implementations of .Nm , .Fl T diff --git a/usr.bin/ar/ar.c b/usr.bin/ar/ar.c index 4353efcb0ff2..fb57fbe21e7f 100644 --- a/usr.bin/ar/ar.c +++ b/usr.bin/ar/ar.c @@ -227,8 +227,7 @@ main(int argc, char **argv) bsdar->options |= AR_S; break; case 'T': - warnx("-T is deprecated"); - bsdar->options |= AR_TR; + /* ignored */ break; case 't': set_mode(bsdar, opt);