mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 16:30:12 +01:00
This function gets used for both /proc/sys (ie, sysctl) and for sysfs attributes. There are two issues with it: 1) most sysctl values don't care about a trailing LF, but some sysfs attributes (infiniband) do; so we always have to add the trailing LF. Just move that into the function to ensure that callers don't forget to add it. 2) neither sysfs or sysctl support partial writes, while the existing function did partial writes. Practically, both the write handlers for sysfs and sysctl should always handle all the data, but if they don't, partial writes are wrong. So instead, try three times to write all the data. |
||
|---|---|---|
| .. | ||
| Makefile.am | ||
| nm-ip6-manager.c | ||
| nm-ip6-manager.h | ||