summaryrefslogtreecommitdiff
path: root/src/settings/plugins/keyfile/nms-keyfile-plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings/plugins/keyfile/nms-keyfile-plugin.c')
-rw-r--r--src/settings/plugins/keyfile/nms-keyfile-plugin.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/settings/plugins/keyfile/nms-keyfile-plugin.c b/src/settings/plugins/keyfile/nms-keyfile-plugin.c
index 1c9a06b1e0..ae9bea13f3 100644
--- a/src/settings/plugins/keyfile/nms-keyfile-plugin.c
+++ b/src/settings/plugins/keyfile/nms-keyfile-plugin.c
@@ -36,6 +36,7 @@
#include "nm-utils.h"
#include "nm-config.h"
#include "nm-core-internal.h"
+#include "nm-keyfile-internal.h"
#include "settings/nm-settings-plugin.h"
@@ -179,7 +180,7 @@ update_connection (NMSKeyfilePlugin *self,
_LOGD ("loading from file \"%s\"...", full_path);
if ( !nm_utils_file_is_in_path (full_path, nms_keyfile_utils_get_path ())
- && !nm_utils_file_is_in_path (full_path, NM_CONFIG_KEYFILE_PATH_IN_MEMORY)) {
+ && !nm_utils_file_is_in_path (full_path, NM_KEYFILE_PATH_NAME_RUN)) {
g_set_error_literal (error, NM_SETTINGS_ERROR, NM_SETTINGS_ERROR_FAILED,
"File not in recognized system-connections directory");
return FALSE;
@@ -312,7 +313,7 @@ dir_changed (GFileMonitor *monitor,
gboolean exists;
full_path = g_file_get_path (file);
- if (nms_keyfile_utils_should_ignore_file (full_path, FALSE)) {
+ if (nm_keyfile_utils_ignore_filename (full_path, FALSE)) {
g_free (full_path);
return;
}
@@ -434,7 +435,7 @@ _read_dir (GPtrArray *filenames,
}
while ((item = g_dir_read_name (dir))) {
- if (nms_keyfile_utils_should_ignore_file (item, require_extension))
+ if (nm_keyfile_utils_ignore_filename (item, require_extension))
continue;
g_ptr_array_add (filenames, g_build_filename (path, item, NULL));
}
@@ -457,7 +458,7 @@ read_connections (NMSettingsPlugin *config)
filenames = g_ptr_array_new_with_free_func (g_free);
- _read_dir (filenames, NM_CONFIG_KEYFILE_PATH_IN_MEMORY, TRUE);
+ _read_dir (filenames, NM_KEYFILE_PATH_NAME_RUN, TRUE);
_read_dir (filenames, nms_keyfile_utils_get_path (), FALSE);
alive_connections = g_hash_table_new (nm_direct_hash, NULL);
@@ -522,12 +523,12 @@ load_connection (NMSettingsPlugin *config,
if (nm_utils_file_is_in_path (filename, nms_keyfile_utils_get_path ()))
require_extension = FALSE;
- else if (nm_utils_file_is_in_path (filename, NM_CONFIG_KEYFILE_PATH_IN_MEMORY))
+ else if (nm_utils_file_is_in_path (filename, NM_KEYFILE_PATH_NAME_RUN))
require_extension = TRUE;
else
return FALSE;
- if (nms_keyfile_utils_should_ignore_file (filename, require_extension))
+ if (nm_keyfile_utils_ignore_filename (filename, require_extension))
return FALSE;
connection = update_connection (self, NULL, filename, find_by_path (self, filename), TRUE, NULL, NULL);