Menu

#354 Missing album art along with "Rejecting wide link" messages in log

v1.0 (example)
open
nobody
None
5
2023-03-15
2023-03-15
No

If minidlna is started via a systemd unit file that includes:

DynamicUser=yes
CacheDirectory=minidlna

Then systemd symlinks /var/cache/minidlna -> /var/cache/private/minidlna.

If the default db_dir is left commented in minidlna.conf, then the hardcoded default of /var/cache/minidlna is used directy without being resolved through realpath(). This always fails comparison tests with paths that are resolved through realpath().

I think the fix is in minidlna.c, line 822:

    if (!db_path[0])
        strncpyt(db_path, realpath(DEFAULT_DB_PATH, buf), sizeof(db_path));

I'll try to create a PR.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB