vpn: ignore VPN service files that don't end in .name

This commit is contained in:
Michael Biebl
2009-01-30 00:00:12 -05:00
committed by Dan Williams
parent 0e6c557bce
commit 8a2393ade2

View File

@@ -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);