-
-
Notifications
You must be signed in to change notification settings - Fork 868
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
Correctly set config directory permissions at first start #1132
Conversation
abraunegg
commented
Nov 8, 2020
- When ~/.config/onedrive/ gets created for the first time, directory permissions are not set, thus, effective permissions of 'd---------' get applied. This then causes issues attempting to update the 'refresh_token' as permission is denied.
- When permission is denied, the file exception error is not correctly handled
* When ~/.config/onedrive/ gets created for the first time, directory permissions are not set, thus, effective permissions of 'd---------' get applied. This then causes issues attempting to update the 'refresh_token' as permission is denied. * When permission is denied, the file exception error is not correctly handled
* Set refresh_token permissions
Without PR:
With PR:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah well, yesssss, missing explicit configuration of the directory permission setting initializes it to 0, which is not a very good bitmask. Good catch!
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |