make got_path_is_root_dir() deal with an arbitrary amount of leading slashes
diff --git a/lib/path.c b/lib/path.c
index 01ae02e..be971e6 100644
--- a/lib/path.c
+++ b/lib/path.c
@@ -135,7 +135,9 @@ got_path_skip_common_ancestor(char **child, const char *parent_abspath,
int
got_path_is_root_dir(const char *path)
{
- return (path[0] == '/' && path[1] == '\0');
+ while (*path == '/')
+ path++;
+ return (*path == '\0');
}
int