-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git installer spoils ACL of %TEMP% on Win7 #190
Comments
Hmm. I thought that the
in |
I install Git SDK on my another Win7 machine which is installed in standart way(
Here after running
Spoiled ACL from my first message prevents software from using temp directory("Access denied" on file creation attempts etc). Next I go to $ diff -u /etc/fstab.orig /etc/fstab
--- /etc/fstab.orig 2015-06-12 02:19:06.011861600 +0300
+++ /etc/fstab 2015-06-12 02:20:50.855063200 +0300
@@ -2,5 +2,5 @@
# http://cygwin.com/cygwin-ug-net/using.html#mount-table
# DO NOT REMOVE NEXT LINE. It remove cygdrive prefix from path
-none / cygdrive binary,posix=0,noacl,user 0 0
+none / cygdrive binary,posix=0,user 0 0
none /tmp usertemp binary,posix=0 0 0 It is don't help. Starting Next I try this: y_zavadovskiy@Yan-PC MINGW64 /
$ diff -u /etc/fstab.orig /etc/fstab
--- /etc/fstab.orig 2015-06-12 02:19:06.011861600 +0300
+++ /etc/fstab 2015-06-12 02:23:00.277282100 +0300
@@ -3,4 +3,4 @@
# DO NOT REMOVE NEXT LINE. It remove cygdrive prefix from path
none / cygdrive binary,posix=0,noacl,user 0 0
-none /tmp usertemp binary,posix=0 0 0
+none /tmp usertemp binary,posix=0,noacl 0 0 And it helps. |
Excellent analysis. Would you care to open a Pull Request, fixing this line with a nice, concise summary of your analysis as commit message? I would really appreciate that. |
I have used only the portable version of Git for Windows 2 so far and the SDK installer, both installed on system drive C:, but it seems the issue also hit me. Microsoft Message Analyzer refuses to start with exception:
This is the output of
|
FWIW this fix is part of the 2nd release candidate at https://git-for-windows.github.io/#download. |
Researched a few more. /usr/bin/chmod 1777 /tmp 2>/dev/null Commenting this line also fixes this issue. |
Hello.
I have Win7 x64 installed on disk D: and temporary dir on disk C:
Here part of env:
Disk D: have standart Win7 ACLs, as created on Windows installation.
Disk C: have full access for everyone to all disk contents.
Here output of icacls utility on C:
Now I run Git installer. While installer unpacks Git files %TEMP%'s ACL is not touched(I repeatedly exec "icacls C:\Temp" during installation).
But after last installation stage(shortcuts creation, just before last page appears) %TEMP%'s ACL becames this:
Git version: v2.4.2.windows.1 57190ae
Tried Git-2.4.2.1-release-candidate-64-bit.exe and PortableGit-2.4.2.1-release-candidate-64-bit.7z.exe
Portable setup have same behavior - while unpacking ACL is good. And before SFX closes ACL is spoiled.
The text was updated successfully, but these errors were encountered: