Skip to content
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

Change default file creation mode to match Linux #16502

Merged
merged 1 commit into from
May 21, 2016

Conversation

micahjsmith
Copy link
Contributor

Ref #16466. Changes default file creation mode (for *nix) from u=rw, g=r, o=r to
u=rw, g=rw, o=rw (Linux default). Note that with the default umask
(0022), the resulting permissions do not change. It is only with a more
permissive umask (e.g. 0000) that the resulting permissions would be
different.

Fixes JuliaLang#16466. Changes default file creation mode from u=rw, g=r, o=r to
u=rw, g=rw, o=rw (Linux default). Note that with the default umask
(0022), the resulting permissions do not change. It is only with a more
permissive umask (e.g.  0000) that the resulting permissions would be
different.
@vtjnash vtjnash merged commit cb0aaa7 into JuliaLang:master May 21, 2016
@@ -892,7 +892,7 @@ ios_t *ios_file(ios_t *s, const char *fname, int rd, int wr, int create, int tru
fd = _wopen(fname_w, flags | O_BINARY | O_NOINHERIT, _S_IREAD | _S_IWRITE);
set_io_wait_begin(0);
#else
fd = open_cloexec(fname, flags, S_IRUSR | S_IWUSR /* 0600 */ | S_IRGRP | S_IROTH /* 0644 */);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Maybe leave a short comment about umask here.

@tkelman tkelman added the needs tests Unit tests are required for this change label May 21, 2016
@StefanKarpinski StefanKarpinski added the needs docs Documentation for this change is required label Jul 11, 2016
@StefanKarpinski
Copy link
Member

This needs to be added to NEWS for 0.5.

@StefanKarpinski StefanKarpinski added this to the 0.5.0 milestone Jul 11, 2016
@tkelman
Copy link
Contributor

tkelman commented Jul 12, 2016

Should we open a NEWS todo checklist issue? Closed issues/PRs on the milestone are a bit tough to track

@StefanKarpinski
Copy link
Member

👍 Excellent idea.

@tkelman
Copy link
Contributor

tkelman commented Aug 3, 2016

NEWS was added in 72f3a6b

@tkelman tkelman removed the needs docs Documentation for this change is required label Aug 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs tests Unit tests are required for this change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants