chiark / gitweb /
drop_duplicates: copy full BindMount struct
[elogind.git] / src / core / namespace.c
index 5466b7b..fe95377 100644 (file)
@@ -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;