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: hang on read-only filesystems #2

Merged
merged 1 commit into from
Sep 11, 2024
Merged

fix: hang on read-only filesystems #2

merged 1 commit into from
Sep 11, 2024

Conversation

jackwilsdon
Copy link
Contributor

On Linux systems where the log directory and all of its parents are not writable, fileOrDirectoryIsWriteable currently spins forever with currPath.dir equal to /.

@FoxxMD FoxxMD merged commit ff0e6df into FoxxMD:main Sep 11, 2024
@FoxxMD
Copy link
Owner

FoxxMD commented Sep 11, 2024

Thanks for the fix!

@jackwilsdon jackwilsdon deleted the fix-read-only-hang branch September 11, 2024 13:05
FoxxMD added a commit that referenced this pull request Sep 11, 2024
* Simplify the logic for testing if a file or parent directories are writeable
* Add a test suite to verify file/dir access testing works as expected

#2
@FoxxMD
Copy link
Owner

FoxxMD commented Sep 11, 2024

@jackwilsdon can you try out @foxxmd/logging@0.2.1-rc1 and let me know if everything still works for you?

@jackwilsdon
Copy link
Contributor Author

I'm using @foxxmd/logging via multi-scrobbler - just updated it to use that version and it looks good, thanks!

@FoxxMD
Copy link
Owner

FoxxMD commented Sep 11, 2024

I've updated multi-scrobbler to use the fixed version. You should be able to pull foxxmd/multi-scrobbler:edge soon (or master branch) to get the fix without needing to override anything.

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