svn commit: r191055 - head/lib/libc/string

Tim Kientzle kientzle at freebsd.org
Wed Apr 15 18:06:03 UTC 2009


Edward Tomasz Napierala wrote:
> 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).
> 
> 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?

Unfortunately, mode_t is very full and extending
it would probably cause chaos.

I was thinking of a bit in the fflags field.
That wouldn't help strmode(), of course,
but would make it easy for strmode() users
(such as ls) to add a '+' if they wanted to.

Tim



More information about the svn-src-all mailing list