Ken Takata wrote:

> I found that the current implementation of mch_get_acl() and mch_set_acl()
> in os_win32.c does not work well. There are some causes:
> 
> 1. mch_get_acl() tries to retrieve all security information (Owner, Group,
>    DACL and SACL), but it may fail because of lack of privileges.
>    SE_SECURITY_NAME privilege must be held and must be enabled to retrieve 
> SACL.
> 2. Setting Owner or Group may also fail if the caller doesn't have enough
>    privileges.
> 3. mch_[gs]et_acl() functions don't support multibyte characters at all.
> 
> I wrote a patch to fix these problems.
> (Also available at https://gist.github.com/3489193 )
> 
> This patch may also fix a problem of Cygwin file modes.
> (e.g. https://groups.google.com/d/topic/vim_dev/gEQe2esLPAc/discussion )
> Even if 'backupcopy' is set to 'auto' or 'no', Cygwin file modes will be
> preserved. (Cygwin file modes are stored as DACL.)

Thanks!  I'll add a note in the todo list.

-- 
FATHER: One day, lad, all this will be yours ...
PRINCE: What - the curtains?
                 "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

Raspunde prin e-mail lui