From: Ansgar Burchardt Date: Sun, 27 Jul 2014 14:32:13 +0000 (+0200) Subject: drop_duplicates: copy full BindMount struct X-Git-Tag: v216~422 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=e2d7c1a0758ce80d7cb439745deefefdffd67655;ds=sidebyside drop_duplicates: copy full BindMount struct At least t->ignore = f->ignore; is missing here. Just copy the full struct to be sure. --- diff --git a/src/core/namespace.c b/src/core/namespace.c index 5466b7bae..fe9537787 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;