-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Take umask into account in filebuf_commit #1940
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
Conversation
The OS is the one that's meant to take the umask into account. When you write out a file and ask for |
No, we explicitly call |
I think @carlosmn is correct and we should probably just not call |
So you want to move the mode to On Mon, Nov 4, 2013 at 5:08 PM, Russell Belfer [email protected]:
|
Ah, you're right.When calling If Win32 doesn't preserve the mode across renames, then we're still buggy (and have been for a while), as the |
Ok, so it's a pretty large change to refactor this now to fix the issue. We should do this in the future, as the call to So let's go with this and we can do the refactor later on, as it's purely an internal API. |
Well, we also call I think that the only advantage to doing it in On Mon, Nov 4, 2013 at 5:36 PM, Carlos Martín Nieto <
|
Okay, let's move that then so that we can get this merged. World writable files in the git repo are for real bad. |
Yo lets merge this so the build turns green and we stop writing world writable files. @cmn are you happy with the API change? |
👍 ❤️ |
Take umask into account in filebuf_commit
Take umask into account in filebuf_commit
Our usage of
git_filebuf_commit
indicates that it would take umask into account, but it does not. (See, for instance,config_file.c
.