From owner-svn-src-head@FreeBSD.ORG Wed Apr 15 08:44:27 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C497106566C; Wed, 15 Apr 2009 08:44:27 +0000 (UTC) (envelope-from trasz@freebsd.org) Received: from pin.if.uz.zgora.pl (pin.if.uz.zgora.pl [212.109.128.251]) by mx1.freebsd.org (Postfix) with ESMTP id 5E1EB8FC16; Wed, 15 Apr 2009 08:44:27 +0000 (UTC) (envelope-from trasz@freebsd.org) Received: by pin.if.uz.zgora.pl (Postfix, from userid 1001) id BA51A39BA2; Wed, 15 Apr 2009 10:31:03 +0200 (CEST) Date: Wed, 15 Apr 2009 10:31:03 +0200 From: Edward Tomasz Napierala To: Tim Kientzle Message-ID: <20090415083103.GA23062@pin.if.uz.zgora.pl> References: <200904141139.n3EBdudA004806@svn.freebsd.org> <49E4D2BF.2040503@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: <49E4D2BF.2040503@freebsd.org> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r191055 - head/lib/libc/string X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2009 08:44:28 -0000 On 0414T1115, Tim Kientzle wrote: > > There is no way for strmode(3) to append '+' if the file has ACL, > > because there is no way to figure that out based on the file mode > > itself. Make the manual page match reality. > > Yep, that '+' is why libarchive has a custom strmode() > that accepts more information than just the mode. > > A related issue: It would be really nice to be > able to find out whether a file had extended ACLs > or extended attributes based on the information > returned from stat(2). That would allow programs > like tar to avoid a fair number of system calls. > Even just a single bit "HAS_EXTENSIONS" would help > a lot, since most files don't have any extended > ACLs or extended attributes. It would also allow > users of strmode() (such as ls) to insert that '+' > sign themselves. I know about the idea of adding a bit to the inode flags, but I never thought about exposing it to the userland in mode_t. Can we actually do this without risking confusing some applications that expect only the standard mode bits to be set? -- If you cut off my head, what would I say? Me and my head, or me and my body?