diff --git a/src/core/namespace.c b/src/core/namespace.c index 5466b7baec2..fe953778718 100644 --- a/src/core/namespace.c +++ b/src/core/namespace.c @@ -124,8 +124,7 @@ static void drop_duplicates(BindMount *m, unsigned *n) { if (previous && path_equal(f->path, previous->path)) continue; - t->path = f->path; - t->mode = f->mode; + *t = *f; previous = t;