Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Apr 2009 11:05:58 -0700
From:      Tim Kientzle <kientzle@freebsd.org>
To:        Edward Tomasz Napierala <trasz@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:  <49E62206.2070706@freebsd.org>
In-Reply-To: <20090415083103.GA23062@pin.if.uz.zgora.pl>
References:  <200904141139.n3EBdudA004806@svn.freebsd.org> <49E4D2BF.2040503@freebsd.org> <20090415083103.GA23062@pin.if.uz.zgora.pl>

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




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