Skip to content

Commit

Permalink
Merge pull request #188 from giuseppe/composefs-from-json-skip-dot
Browse files Browse the repository at this point in the history
composefs-from-json: skip path component "."
  • Loading branch information
cgwalters authored Sep 13, 2023
2 parents df1bd03 + 03d605c commit 9e83d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/composefs-from-json.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9e83d42

Please sign in to comment.