1
0
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:
Daan De Meyer 2024-08-14 17:31:30 +02:00
parent 531c6506c2
commit f75641b772

View File

@ -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();