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

_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to