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

Check permision on write to file even if .BAC0 directory exists #282

Merged
merged 3 commits into from
Jul 28, 2021

Conversation

EddieTheHead
Copy link

System could enter read-only mode after the first use of BAC0, which in my case caused exception in FileHandler.

@ChristianTremblay
Copy link
Owner

When do permission to write gets back to True ?

@EddieTheHead
Copy link
Author

It was true at first, which lead to creation of log directory /home/user/.BAC0 (during deploy) and was changed to false (default state on my embedded device) after system restart. In that case BAC0 assumed that if there's log directory present it was safe to write files. With this patch BAC0 checks permissions after each app restart.

@ChristianTremblay ChristianTremblay changed the base branch from master to develop July 23, 2021 13:36
@ChristianTremblay ChristianTremblay merged commit fef37bf into ChristianTremblay:develop Jul 28, 2021
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.

3 participants