diff options
author | Michael Biebl <biebl@debian.org> | 2009-01-30 00:00:12 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2009-01-30 00:00:12 -0500 |
commit | 8a2393ade219b57790eb9facf0f0058956c6173f (patch) | |
tree | b8c5cfaa582b3b296d723feb96cd868aeef4903b /src/vpn-manager | |
parent | 0e6c557bce178022c2f70de6952582f256ec41d5 (diff) |
vpn: ignore VPN service files that don't end in .name
Diffstat (limited to 'src/vpn-manager')
-rw-r--r-- | src/vpn-manager/nm-vpn-service.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vpn-manager/nm-vpn-service.c b/src/vpn-manager/nm-vpn-service.c index d8b2082288..15aa56db5e 100644 --- a/src/vpn-manager/nm-vpn-service.c +++ b/src/vpn-manager/nm-vpn-service.c @@ -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); |