From owner-cvs-all@FreeBSD.ORG Thu Apr 8 00:05:46 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D2C416A4CE; Thu, 8 Apr 2004 00:05:46 -0700 (PDT) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DA8343D5D; Thu, 8 Apr 2004 00:05:45 -0700 (PDT) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.11/8.12.11) with ESMTP id i3875iHm050336; Thu, 8 Apr 2004 11:05:44 +0400 (MSD) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.11/8.12.11/Submit) id i3875iPO050330; Thu, 8 Apr 2004 11:05:44 +0400 (MSD) (envelope-from ache) Date: Thu, 8 Apr 2004 11:05:44 +0400 From: Andrey Chernov To: Tim Kientzle Message-ID: <20040408070543.GA50138@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Tim Kientzle , Tim Kientzle , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org References: <200404080606.i3866g3q063716@repoman.freebsd.org> <20040408062121.GA49250@nagual.pp.ru> <4074F596.2020401@kientzle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4074F596.2020401@kientzle.com> User-Agent: Mutt/1.5.6i X-AntiVirus: checked by AntiVir Milter 1.1-beta; AVE 6.25.0.2; VDF 6.25.0.6 (host: pobrecita.freebsd.ru) cc: cvs-src@FreeBSD.org cc: Tim Kientzle cc: cvs-all@FreeBSD.org cc: src-committers@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/pkg_install/lib file.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2004 07:05:46 -0000 On Wed, Apr 07, 2004 at 11:47:50PM -0700, Tim Kientzle wrote: > * Not all platforms have getopt_long(), and I intend for > bsdtar to be usable on systems that only have getopt(). > The "-" extension is certainly not standard across getopt() > implementations. (bsdtar currently has a couple of > long options with no short equivalent; I do intend to > address that.) I do not suggest to use initial "-" for getopt() options, only for getopt_long() short options. It means that on platforms without getopt_long() args/options can't be intermixed or, alternatively, you can include BSDL copy of getopt_long() from our libc with your program. > * According to the getopt_long man page, there is > some disagreement about the handling of that leading > "-" in the presence of POSIXLY_CORRECT. I'd prefer > to avoid such ambiguities where possible. This is NetBSD-sm, they try to mimic GNU getopt_long() which is right, since it originates from there, but at some point they think they are smarter than GNU (which leads to breaking some legal getopt_long() usage, f.e. gas becomes broken). How to deal with it, see above, i.e. include our getopt_long(). > As I said, I could be convinced to do as you suggest, but I'm > pretty comfortable with the option parsing of bsdtar > as it stands. BTW, could you please implement -S, --sparse? It is very needed to backup/restore large (and mostly null-filled) databases. There can be cases, when you restore database without -S, it can lead to disk space overflow, since it created as sparse at physical level and occupes less space. -- Andrey Chernov | http://ache.pp.ru/