From owner-freebsd-current@FreeBSD.ORG Tue Oct 18 15:25:53 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A851F106566C for ; Tue, 18 Oct 2011 15:25:53 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 84C8F8FC12 for ; Tue, 18 Oct 2011 15:25:53 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id p9IFPqFC024928; Tue, 18 Oct 2011 15:25:52 GMT (envelope-from kientzle@freebsd.org) Received: from [192.168.2.119] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id m4ga36u6qv2kfcgwmnqmzknzxa; Tue, 18 Oct 2011 15:25:52 +0000 (UTC) (envelope-from kientzle@freebsd.org) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: Tim Kientzle In-Reply-To: Date: Tue, 18 Oct 2011 08:26:00 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Benjamin Kaduk X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-current@freebsd.org Subject: Re: bsdtar --gname switch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2011 15:25:53 -0000 On Oct 17, 2011, at 3:25 PM, Benjamin Kaduk wrote: > On Mon, 17 Oct 2011, Romain Garbage wrote: >>=20 >> According to bsdtar(1) manpage, tar has a --gname switch that permits >> to set an arbitrary groupname in the tar archive, but: >> $ tar -cf foo.tar --gname root bar >> tar: Option --gname is not supported >>=20 >> I get the same error for --uname and --gid switches. I'm running >> 9.0-BETA3 (r226421). Does this have any chances to be corrected in a >> not to far away future? >=20 > This is, at present, a documentation bug. > FreeBSD svn revision 207786 was "Various manpage updates, including = many long-option synonyms that were previously undocumented", which = added the gname long-format option to bsdtar.1. However, this option is = not present in usr.bin/tar/cmdline.c in FreeBSD head, though it was = added in r2349 of upstream libarchive sources on May 1, 2010. So, it = looks like it should have been in libarchive since 2.8.4; however, = pulling tarballs for 2.8.4 and 2.8.5 it does not seem that gname is = listed in cmdline.c for either of them. >=20 > I'm not familiar with the libarchive release process; Tim, can you = shed some insight on what happened here? Looks like the manpage got updated to the latest version from libarchive/trunk. Unfortunately, some of the features described there are not present in libarchive 2.8. It looks like it might be easy to back port some of these features. They don't seem to rely on any of the deeper changes to libarchive internals that have happened since 2.8. Tim