Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Apr 2009 10:31:03 +0200
From:      Edward Tomasz Napierala <trasz@freebsd.org>
To:        Tim Kientzle <kientzle@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r191055 - head/lib/libc/string
Message-ID:  <20090415083103.GA23062@pin.if.uz.zgora.pl>
In-Reply-To: <49E4D2BF.2040503@freebsd.org>
References:  <200904141139.n3EBdudA004806@svn.freebsd.org> <49E4D2BF.2040503@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090415083103.GA23062>