diff --git a/tools/composefs-from-json.c b/tools/composefs-from-json.c index de7ba432..d3669bb2 100644 --- a/tools/composefs-from-json.c +++ b/tools/composefs-from-json.c @@ -562,7 +562,7 @@ static struct lcfs_node_s *get_or_add_node(const char *typ, while ((it = strsep(&dpath, "/"))) { struct lcfs_node_s *c; - if (it[0] == '\0') + if (it[0] == '\0' || strcmp(it, ".") == 0) continue; c = lcfs_node_lookup_child(node, it);