|
|
|
From d943f1093603176864cd029a013d4216ef5f277f Mon Sep 17 00:00:00 2001
|
|
|
|
From: Thomas Haller <thaller@redhat.com>
|
|
|
|
Date: Tue, 9 Apr 2019 18:00:21 +0200
|
|
|
|
Subject: [PATCH] Revert "keyfile: also add ".nmconnection" extension when
|
|
|
|
writing keyfiles in /etc"
|
|
|
|
|
|
|
|
This reverts commit d37ad15f12bafd91cf724cda50aea7093e04bf7a.
|
|
|
|
---
|
|
|
|
src/settings/plugins/keyfile/nms-keyfile-writer.c | 7 +++++--
|
|
|
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/src/settings/plugins/keyfile/nms-keyfile-writer.c b/src/settings/plugins/keyfile/nms-keyfile-writer.c
|
|
|
|
index 2e06aeb9da69..ee652881d60b 100644
|
|
|
|
--- a/src/settings/plugins/keyfile/nms-keyfile-writer.c
|
|
|
|
+++ b/src/settings/plugins/keyfile/nms-keyfile-writer.c
|
|
|
|
@@ -357,16 +357,19 @@ nms_keyfile_writer_connection (NMConnection *connection,
|
|
|
|
GError **error)
|
|
|
|
{
|
|
|
|
const char *keyfile_dir;
|
|
|
|
+ gboolean with_extension = FALSE;
|
|
|
|
|
|
|
|
if (save_to_disk)
|
|
|
|
keyfile_dir = nms_keyfile_utils_get_path ();
|
|
|
|
- else
|
|
|
|
+ else {
|
|
|
|
keyfile_dir = NM_KEYFILE_PATH_NAME_RUN;
|
|
|
|
+ with_extension = TRUE;
|
|
|
|
+ }
|
|
|
|
|
|
|
|
return _internal_write_connection (connection,
|
|
|
|
keyfile_dir,
|
|
|
|
nms_keyfile_utils_get_path (),
|
|
|
|
- TRUE,
|
|
|
|
+ with_extension,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
existing_path,
|
|
|
|
--
|
|
|
|
2.21.0
|
|
|
|
|