[misc] Replace m_realpath with realpath from stdlib.h

This commit is contained in:
chme
2017-08-12 13:35:22 +02:00
parent 0f4f8a9a40
commit 14877a49e0
4 changed files with 2 additions and 26 deletions

View File

@@ -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));