mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 05:30:08 +01:00
vpn: ignore VPN service files that don't end in .name
This commit is contained in:
parent
0e6c557bce
commit
8a2393ade2
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue