diff options
author | Ed Maste <emaste@FreeBSD.org> | 2022-01-03 16:32:52 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2022-01-03 16:42:59 +0000 |
commit | 1a0a41b10566e75e77e7efbc8475622b6a37ffbf (patch) | |
tree | 88e6d3080bf77685a19a72c0a68bcd5b19fa1dc1 | |
parent | 9fe79f2f2b22ea068e5acb2af23d130a13d2ab06 (diff) | |
download | src-1a0a41b10566e75e77e7efbc8475622b6a37ffbf.tar.gz src-1a0a41b10566e75e77e7efbc8475622b6a37ffbf.zip |
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
-rw-r--r-- | usr.bin/ar/ar.1 | 5 | ||||
-rw-r--r-- | 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); |