mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 05:59:45 -05:00
Use m_realpath(path) instead of realpath(path, NULL)
This commit is contained in:
@@ -681,7 +681,7 @@ serve_file(struct evhttp_request *req, char *uri)
|
||||
}
|
||||
else if (S_ISLNK(sb.st_mode))
|
||||
{
|
||||
deref = realpath(path, NULL);
|
||||
deref = m_realpath(path);
|
||||
if (!deref)
|
||||
{
|
||||
DPRINTF(E_LOG, L_HTTPD, "Could not dereference %s: %s\n", path, strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user