1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-12 08:58:20 +03:00

network-generator: drop wrong warning for rd.peerdns without value

(cherry picked from commit 2a774f064815573efc33d43dfe3548590e42e9c2)
(cherry picked from commit 56cc8acf45dbff227d1713d509bc3b71386df5d8)
(cherry picked from commit 2e956d084024b7cc984528719e866b3d9f2f59eb)
(cherry picked from commit d3132ec4944279f1c8f4968888710ba821083e56)
(cherry picked from commit fb8b0b6192d414bc81c066a85b3f53e8490ec6ca)
This commit is contained in:
Yu Watanabe 2024-08-14 15:39:12 +09:00 committed by Luca Boccassi
parent 3960ccc815
commit a1861869f5

View File

@ -919,10 +919,7 @@ static int parse_cmdline_rd_peerdns(Context *context, const char *key, const cha
assert(context);
assert(key);
if (proc_cmdline_value_missing(key, value))
return network_set_dhcp_use_dns(context, "", true);
r = parse_boolean(value);
r = value ? parse_boolean(value) : true;
if (r < 0)
return r;