mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-10 07:44:54 -04:00
main: use full path to detect existing node
Closes: https://github.com/containers/fuse-overlayfs/issues/333 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
ce9ed6c2bc
commit
2a766e3912
2
main.c
2
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)
|
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);
|
node_free (n);
|
||||||
return it;
|
return it;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user