summaryrefslogtreecommitdiff
path: root/src/core/namespace.c
diff options
context:
space:
mode:
authorAnsgar Burchardt <ansgar@debian.org>2014-07-27 16:32:13 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-27 15:15:11 -0400
commite2d7c1a0758ce80d7cb439745deefefdffd67655 (patch)
treed5850bf064948b902a55aa1f8a1389e6c3767811 /src/core/namespace.c
parent0f625d0b87139fc18cd565c9b6da05c53a0eb7ab (diff)
drop_duplicates: copy full BindMount struct
At least t->ignore = f->ignore; is missing here. Just copy the full struct to be sure.
Diffstat (limited to 'src/core/namespace.c')
-rw-r--r--src/core/namespace.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/namespace.c b/src/core/namespace.c
index 5466b7baec..fe95377871 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;