Git config command ignores explicitly set file permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I noticed while working with Git that the file permissions on the gitconfig file is ignored and the parent folder permissions are used instead to update the file. 
An example is as follows:

Before running git config ensure the user running the command is not able to edit the file but has read access to the file. Ensure the User has full access to the parent folder. 
After running any git config command the user previously without edit permissions on a file can now edit the config file.

I documented the issue in more details in this ticket https://github.com/git-for-windows/git/issues/2686

I originally found the issue  while working in the windows version of git but @dscho noted that it is also an issue in the WSL version of git and believes it is caused by creating the .lock file which replaces the original file.
@dscho also suggested I send out an email to this mailing list.

Let me know if I can provide any more information

Thanks,

Matthew Riddell

----------------------------------------------------------------------
The information contained in this message may be privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify your representative immediately and delete this message from your computer. Thank you.




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux