git: 1a0a41b10566 - main - ar: accept but ignore 'T' option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 03 Jan 2022 16:43:47 UTC
The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=1a0a41b10566e75e77e7efbc8475622b6a37ffbf commit 1a0a41b10566e75e77e7efbc8475622b6a37ffbf Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-01-03 16:32:52 +0000 Commit: Ed Maste <emaste@FreeBSD.org> 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);