mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-28 05:04:16 -05:00
[misc] Replace m_realpath with realpath from stdlib.h
This commit is contained in:
@@ -1006,7 +1006,7 @@ serve_file(struct evhttp_request *req, char *uri)
|
||||
}
|
||||
else if (S_ISLNK(sb.st_mode))
|
||||
{
|
||||
deref = m_realpath(path);
|
||||
deref = realpath(path, NULL);
|
||||
if (!deref)
|
||||
{
|
||||
DPRINTF(E_LOG, L_HTTPD, "Could not dereference %s: %s\n", path, strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user