Commit Diff
--- lib/path.c +++ lib/path.c @@ -135,7 +135,9 @@ got_path_skip_common_ancestor(char **child, const char int got_path_is_root_dir(const char *path) { - return (path[0] == '/' && path[1] == '\0'); + while (*path == '/') + path++; + return (*path == '\0'); } int