Danek Duvall wrote:

> ZFS datasets on Solaris (maybe others?) have this nifty little property
> called "aclmode", which is set to "discard" by default[1].  That means that
> when calling chmod() on a file, any non-trivial ACL gets removed.  In
> buf_write(), we almost always call mch_setperm(), causing that to happen.
> If a user has backupcopy=no, then the ACL is restored, but if it's set to
> yes, then vim skips the restoration.
> 
> I'm not sure how targeted the fix should be, but the attached patch seems
> reasonable.  We could keep track of whether mch_setperm() had been called
> previously, but maybe that's overkill for something (not calling it) that's
> very unlikely to happen.
> 
> [1] http://docs.oracle.com/cd/E23824_01/html/821-1462/zfs-1m.html

Thanks.  This solution makes sense.

-- 
DINGO:   You must spank her well and after you have spanked her you
         may deal with her as you like and then ... spank me.
AMAZING: And spank me!
STUNNER: And me.
LOVELY:  And me.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui