Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
typedef struct _node
{
char path[PATH_MAX];
struct _node *next;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

275

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