lstat_cache(): print a warning if doing ping-pong between cache types
[gitweb.git] / builtin-update-index.c
index 560497750586ec61be4e34de6dedd9c307129817..6c55527513675ffd0dd70c294d8d4412af64ed93 100644 (file)
@@ -195,7 +195,7 @@ static int process_path(const char *path)
        struct stat st;
 
        len = strlen(path);
-       if (has_symlink_leading_path(len, path))
+       if (has_symlink_leading_path(path, len))
                return error("'%s' is beyond a symbolic link", path);
 
        /*