Hi, 2012/08/31 Fri 20:33:24 UTC+9 Ken Takata wrote: > Hi Bram, > > 2012/08/31 Fri 5:58:30 UTC+9 Bram Moolenaar: > > Thanks! I'll add a note in the todo list. > > I have updated the patch. (Also available at the same gist URL.) > Now, the inheritance of a DACL is preserved. Maybe it is useful for > non-cygwin files. > I hope this patch and my symlink patch > (https://groups.google.com/d/msg/vim_dev/qF8Y3xtUP-w/opEIDRL94qoJ) > make ':set backupcopy=auto' option more useful. > > -- > Best regards, > Ken Takata
I wrote an additional patch to support ACL when compiled with MinGW. (Current MinGW and Cygwin have the ACL stuff, but I don't know when they support it.) Regards, Ken Takata -- 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
# HG changeset patch # Parent 4779ba13accc2438e415ba61edcfa9d8033488a0 diff --git a/src/os_win32.c b/src/os_win32.c --- a/src/os_win32.c +++ b/src/os_win32.c @@ -492,15 +492,15 @@ * These are needed to dynamically load the ADVAPI DLL, which is not * implemented under Windows 95 (and causes VIM to crash) */ -typedef DWORD (WINAPI *PSNSECINFO) (LPSTR, enum SE_OBJECT_TYPE, +typedef DWORD (WINAPI *PSNSECINFO) (LPSTR, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID, PSID, PACL, PACL); -typedef DWORD (WINAPI *PGNSECINFO) (LPSTR, enum SE_OBJECT_TYPE, +typedef DWORD (WINAPI *PGNSECINFO) (LPSTR, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID *, PSID *, PACL *, PACL *, PSECURITY_DESCRIPTOR *); # ifdef FEAT_MBYTE -typedef DWORD (WINAPI *PSNSECINFOW) (LPWSTR, enum SE_OBJECT_TYPE, +typedef DWORD (WINAPI *PSNSECINFOW) (LPWSTR, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID, PSID, PACL, PACL); -typedef DWORD (WINAPI *PGNSECINFOW) (LPWSTR, enum SE_OBJECT_TYPE, +typedef DWORD (WINAPI *PGNSECINFOW) (LPWSTR, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID *, PSID *, PACL *, PACL *, PSECURITY_DESCRIPTOR *); # endif diff --git a/src/os_win32.h b/src/os_win32.h --- a/src/os_win32.h +++ b/src/os_win32.h @@ -57,14 +57,11 @@ #define FEAT_SHORTCUT /* resolve shortcuts */ -#if !defined(__MINGW32__) \ - && !defined(__CYGWIN__) \ - && (!defined(__BORLANDC__) || __BORLANDC__ >= 0x550) \ +#if (!defined(__BORLANDC__) || __BORLANDC__ >= 0x550) \ && (!defined(_MSC_VER) || _MSC_VER > 1020) /* * Access Control List (actually security info). - * Mingw and Cygwin don't have the acl stuff. - * Borland only in version 5.5 and later. + * Borland has the acl stuff only in version 5.5 and later. * MSVC in 5.0, not in 4.2, don't know about 4.3. */ # define HAVE_ACL