mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-19 03:00:55 +01:00
During write, it can regularly happen that the connection gets modified. For example, keyfile never writes blobs as-is, it always writes the blob to an external file, and replaces the certificate property with a path. Other reasons could be just bugs, where the reader and writer are not doing a proper round trip (these cases should be fixed). Refactor commit_changes(), to return the re-read connection to the settings-connection class, and handle replacing the settings there. Also, prepare for another change. Sometimes we first call replace_settings() followed by commit_changes(). It would be better to instead call commit_changes() first, and only on success proceed with replace_settings(). Hence, commit_changes() gets a new argument new_connection, that can be used to write another connection to disk. |
||
|---|---|---|
| .. | ||
| tests | ||
| nms-ifupdown-connection.c | ||
| nms-ifupdown-connection.h | ||
| nms-ifupdown-interface-parser.c | ||
| nms-ifupdown-interface-parser.h | ||
| nms-ifupdown-parser.c | ||
| nms-ifupdown-parser.h | ||
| nms-ifupdown-plugin.c | ||
| nms-ifupdown-plugin.h | ||