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

Implement password update when .password file changes (fixes #2) #23

Merged
merged 2 commits into from
Aug 21, 2021
Merged

Implement password update when .password file changes (fixes #2) #23

merged 2 commits into from
Aug 21, 2021

Conversation

HeavenVolkoff
Copy link
Contributor

This is a follow up to #21.

As I stated in the previous PR, there were some inconsistent behavior that could happen if a .password file were to be modified while the minidlna server was running. I concluded that the best way to fix this was to implement a solution for #2. Also, I fixed some bugs that remained in the previous PR.

The current logic propagates any modification to a .password file to all files and directories under its influence, and also respects boundaries between upper and sub directories with different .password files. As far as I could test it seems to be working fine. However, more tests are very welcomed, specially in systems that use kqueue instead of inotify as, although I implemented the logic for triggering the password update in monitor_kqueue.c, I don't have a system compatible with it, so I couldn't test it.

@HeavenVolkoff HeavenVolkoff changed the title Implement password update when .password file changes (fixes https://github.com/NathanaelA/minidlna/issues/2) Implement password update when .password file changes (fixes #2) Aug 21, 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.

2 participants