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