sysctl-util: truncate newline in read value

This commit is contained in:
Yu Watanabe
2020-10-28 15:44:10 +09:00
parent 62f12d757c
commit 31a9a27d4c
+1
View File
@@ -122,6 +122,7 @@ int sysctl_read_ip_property(int af, const char *ifname, const char *property, ch
if (r < 0)
return r;
truncate_nl(value);
if (ret)
*ret = TAKE_PTR(value);