real_path: prevent redefinition of MAXSYMLINKS
[gitweb.git] / sha1_file.c
index 9c86d1924a23e4c81369f34ec8e1058c2dd15c1f..6a03cc39342cde47adee9664786fcf3af93c7f0d 100644 (file)
@@ -291,7 +291,7 @@ static int link_alt_odb_entry(const char *entry, const char *relative_base,
        struct strbuf pathbuf = STRBUF_INIT;
 
        if (!is_absolute_path(entry) && relative_base) {
-               strbuf_addstr(&pathbuf, real_path(relative_base));
+               strbuf_realpath(&pathbuf, relative_base, 1);
                strbuf_addch(&pathbuf, '/');
        }
        strbuf_addstr(&pathbuf, entry);