mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 06:03:20 -05:00
Handle symlink-to-directory creation
This commit is contained in:
parent
279fb95979
commit
34b0c22e46
@ -744,6 +744,14 @@ process_inotify_file(struct watch_info *wi, char *path, struct inotify_event *ie
|
|||||||
{
|
{
|
||||||
DPRINTF(E_LOG, L_SCAN, "Could not stat() '%s': %s\n", file, strerror(errno));
|
DPRINTF(E_LOG, L_SCAN, "Could not stat() '%s': %s\n", file, strerror(errno));
|
||||||
|
|
||||||
|
free(deref);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (S_ISDIR(sb.st_mode))
|
||||||
|
{
|
||||||
|
process_inotify_dir(wi, deref, ie);
|
||||||
|
|
||||||
free(deref);
|
free(deref);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user