Fix git-instaweb breakage on MacOS X due to the limited sed functionality
[gitweb.git] / lockfile.c
index 258fb3f5ef8636e7ff144f551689da3090518a0e..f45d3ed54454635b84cfe9b8c1e7d99d33ffd4d9 100644 (file)
@@ -94,7 +94,7 @@ static char *resolve_symlink(char *p, size_t s)
                        return p;
                }
 
-               if (link[0] == '/') {
+               if (is_absolute_path(link)) {
                        /* absolute path simply replaces p */
                        if (link_len < s)
                                strcpy(p, link);