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

Fix macOS installation when umask disallow public read (solves #1582) #1825

Merged
merged 1 commit into from Jan 31, 2018
Merged

Fix macOS installation when umask disallow public read (solves #1582) #1825

merged 1 commit into from Jan 31, 2018

Conversation

giorgiga
Copy link
Contributor

#1582 happens when the user running the install has an umask that disallows public read (eg: umask 0027).

/nix/store is created with mkdir -pv -m 1775 /nix/store, but then rsync -rlpt "$(pwd)/store/" "$NIX_ROOT/store/" syncs the permissions on /nix/store to those of $(pwd)/store/.

Replacing rsync -rlpt "$(pwd)/store/" "$NIX_ROOT/store/" with rsync -rlpt ./store/* "$NIX_ROOT/store/" solves the issue by syncing the contents of ./store instead of the folder itself (of course . is the same as $(pwd), just clearer imho).

@edolstra edolstra merged commit 8af911b into NixOS:master Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants