mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 06:08:02 +02:00
keyfile: also add ".nmconnection" extension when writing keyfiles in /etc
This is a change in behavior regarding the filename that we choose when
writing files to "/etc/NetworkManager/system-connections/".
(cherry picked from commit d37ad15f12)
This commit is contained in:
parent
095bac3019
commit
7d3fba9366
1 changed files with 2 additions and 5 deletions
|
|
@ -352,19 +352,16 @@ nms_keyfile_writer_connection (NMConnection *connection,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
const char *keyfile_dir;
|
const char *keyfile_dir;
|
||||||
gboolean with_extension = FALSE;
|
|
||||||
|
|
||||||
if (save_to_disk)
|
if (save_to_disk)
|
||||||
keyfile_dir = nms_keyfile_utils_get_path ();
|
keyfile_dir = nms_keyfile_utils_get_path ();
|
||||||
else {
|
else
|
||||||
keyfile_dir = NM_CONFIG_KEYFILE_PATH_IN_MEMORY;
|
keyfile_dir = NM_CONFIG_KEYFILE_PATH_IN_MEMORY;
|
||||||
with_extension = TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return _internal_write_connection (connection,
|
return _internal_write_connection (connection,
|
||||||
keyfile_dir,
|
keyfile_dir,
|
||||||
nms_keyfile_utils_get_path (),
|
nms_keyfile_utils_get_path (),
|
||||||
with_extension,
|
TRUE,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
existing_path,
|
existing_path,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue