git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Re: [PATCH v2] config: preserve config file permissions on edits

From
Marius Storm-Olsen <mstormo@gmail.com>
Date
May 19, 2014, 15:59 UTC
Message-ID
<537A2A5C.8040706@gmail.com>
In-Reply-To
<CABPQNSZMExeXXMEUNE9HneK1rfXeLoK=vHZkm38xKt_2VctjXQ@mail.gmail.com>
On 5/19/2014 2:44 AM, Erik Faye-Lund wrote:
Show 15 quoted lines
> On Mon, May 19, 2014 at 9:13 AM, Johannes Sixt <j.sixt@viscovery.net>
> wrote:
>> I'm not proficient enough to add any ACL fiddling to fchmod that
>> would be required by the above change, whose purpose is to be
>> strict about permissions. Nor am I interested (who the heck is
>> sharing a Windows box anyway? ;-)
>
> Since we use MSVCRT's chmod implementation directly which only
> checks for S_IWRITE,and Get/SetFileAttributes to simply set or clear
> the FILE_ATTRIBUTE_READONLY-flag, perhaps we could do the same
> except using Get/SetFileInformationByHandle instead? That takes us in
> a better direction, IMO. Adding full ACL support seems like a bigger
> project.
>
> If there's no objection, I'll sketch up a patch for that...

IMO, try to stay away from full ACL support, as ACL is slow as hell. If it's only triggered in edge cases, that's fine, but be sure not to add any ACL in the main call-paths as it will surely kill performance.

The major speedup which was done by circumventing MSYS/Cygwin standard posix implementations was bypassing much of the ACL slowness.

-- 
.marius

-- 
-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups "msysGit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Previous: Erik Faye-Lund
Message 9 of 9 in “config: preserve config file permissions on edits”
  1. config: preserve config file permissions on editsEric Wong, May 5, 2014
  2. config: preserve config file permissions on editsEric Wong, May 6, 2014
  3. Jeff KingMay 6, 2014
  4. Johannes SixtMay 19, 2014
  5. Erik Faye-LundMay 19, 2014
  6. Erik Faye-LundMay 19, 2014
  7. Thomas BraunMay 19, 2014
  8. Erik Faye-LundMay 19, 2014
  9. Marius Storm-OlsenMay 19, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.