Use m_realpath(path) instead of realpath(path, NULL)

This commit is contained in:
Julien BLACHE
2010-01-09 13:44:10 +01:00
parent b9d8a5880a
commit 8d7c566d95
4 changed files with 8 additions and 5 deletions

View File

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