svn commit: r191055 - head/lib/libc/string
Edward Tomasz Napierala
trasz at freebsd.org
Wed Apr 15 08:44:28 UTC 2009
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?
More information about the svn-src-head
mailing list