From 2a766e391245f9d5e5dc4362e6bf4731b8923b16 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 17 Jan 2022 16:44:05 +0100 Subject: [PATCH] main: use full path to detect existing node Closes: https://github.com/containers/fuse-overlayfs/issues/333 Signed-off-by: Giuseppe Scrivano --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 92dbc84..120cf1f 100644 --- a/main.c +++ b/main.c @@ -1195,7 +1195,7 @@ register_inode (struct ovl_data *lo, struct ovl_node *n, mode_t mode) for (it = ino->node; it; it = it->next_link) { - if (n->parent == it->parent && node_compare (n, it)) + if (node_dirp (it) || strcmp (n->path, it->path) == 0) { node_free (n); return it;