azatoth / minidlna

MiniDLNA (aka ReadyDLNA) is server software with the aim of being fully compliant with DLNA/UPnP-AV clients. It is developed by a NETGEAR employee for the ReadyNAS product line
http://sourceforge.net/projects/minidlna/
Other
294 stars 78 forks source link

realpath invokation on the media directory requires read access to all parent directories #15

Open obadz opened 7 years ago

obadz commented 7 years ago

chdir (executable) access should be sufficient for all directories leading up to the media dir itself.

The problematic line is: https://github.com/azatoth/minidlna/blob/master/minidlna.c#L475

Other invokations of realpath follow this pattern:

                path = realpath(x, y);
                if( !path )
                    path = x

… which tackles the issue and we should probably follow here as well?