1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-08 21:17:47 +03:00

nspawn: fix inverted condition

This commit is contained in:
Frantisek Sumsal 2023-05-15 20:10:05 +02:00
parent f4e5c042c9
commit fc83296547

View File

@ -1589,7 +1589,7 @@ static int oci_sysctl(const char *name, JsonVariant *v, JsonDispatchFlags flags,
assert_se(m = json_variant_string(w));
if (sysctl_key_valid(k))
if (!sysctl_key_valid(k))
return json_log(v, flags, SYNTHETIC_ERRNO(EINVAL),
"sysctl key invalid, refusing: %s", k);