projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f625d0
)
drop_duplicates: copy full BindMount struct
author
Ansgar Burchardt
<ansgar@debian.org>
Sun, 27 Jul 2014 14:32:13 +0000
(16:32 +0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sun, 27 Jul 2014 19:15:11 +0000
(15:15 -0400)
At least
t->ignore = f->ignore;
is missing here. Just copy the full struct to be sure.
src/core/namespace.c
patch
|
blob
|
history
diff --git
a/src/core/namespace.c
b/src/core/namespace.c
index
5466b7b
..
fe95377
100644
(file)
--- 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;