mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
drop_duplicates: copy full BindMount struct
At least t->ignore = f->ignore; is missing here. Just copy the full struct to be sure.
This commit is contained in:
parent
0f625d0b87
commit
e2d7c1a075
Notes:
Lennart Poettering
2014-08-19 21:13:34 +02:00
Backport: bugfix
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user