mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
repart: Don't add same dir to MakeDirectories= or Subvolumes= twice
This commit is contained in:
parent
531c6506c2
commit
f75641b772
@ -1668,6 +1668,9 @@ static int config_parse_make_dirs(
|
|||||||
if (r < 0)
|
if (r < 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (strv_contains(*sv, d))
|
||||||
|
continue;
|
||||||
|
|
||||||
r = strv_consume(sv, TAKE_PTR(d));
|
r = strv_consume(sv, TAKE_PTR(d));
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return log_oom();
|
return log_oom();
|
||||||
|
Loading…
Reference in New Issue
Block a user