mirror of
https://github.com/systemd/systemd.git
synced 2025-01-31 05:47:30 +03:00
Merge pull request #7058 from yuwata/fix-7055
core: fix segfault in compile_bind_mounts() when BindPaths= or BindReadOnlyPaths= is set
This commit is contained in:
commit
3f6aef0d02
@ -2161,7 +2161,7 @@ static int compile_bind_mounts(
|
||||
if (!bind_mounts)
|
||||
return -ENOMEM;
|
||||
|
||||
for (i = 0; context->n_bind_mounts; i++) {
|
||||
for (i = 0; i < context->n_bind_mounts; i++) {
|
||||
BindMount *item = context->bind_mounts + i;
|
||||
char *s, *d;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user