vpn: ignore VPN service files that don't end in .name
This commit is contained in:

committed by
Dan Williams

parent
0e6c557bce
commit
8a2393ade2
@@ -67,6 +67,10 @@ find_service_file (const char *name)
|
||||
char *path;
|
||||
gboolean found = FALSE;
|
||||
|
||||
/* only parse filenames that end with .name */
|
||||
if (!g_str_has_suffix (fn, ".name"))
|
||||
continue;
|
||||
|
||||
key_file = g_key_file_new ();
|
||||
path = g_build_filename (VPN_NAME_FILES_DIR, fn, NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user