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

files: avoid creating directories while opening files for reading #302

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

psaiz
Copy link
Contributor

@psaiz psaiz commented Dec 12, 2023

❤️ Thank you for your contribution!

Description

Opening a file fails if the user does not have write permissions. The open seems to call mkdir, and that fails.

This patch avoids creating directories if the file is opened only for reading.

@psaiz psaiz requested a review from lnielsen December 12, 2023 14:41
@lnielsen lnielsen merged commit e5c2be4 into inveniosoftware:master Dec 12, 2023
8 checks passed
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.

2 participants