agent: allow the '.' character in agent identifiers

This commit is contained in:
Dan Williams
2010-12-14 11:19:39 -06:00
parent 81bc9c8572
commit fc82bbc412

View File

@@ -177,7 +177,7 @@ validate_identifier (const char *identifier, GError **error)
/* FIXME: do complete validation here */ /* FIXME: do complete validation here */
while (p && *p) { while (p && *p) {
if (!isalnum (*p) && (*p != '_') && (*p != '-')) { if (!isalnum (*p) && (*p != '_') && (*p != '-') && (*p != '.')) {
g_set_error (error, g_set_error (error,
NM_AGENT_MANAGER_ERROR, NM_AGENT_MANAGER_ERROR,
NM_AGENT_MANAGER_ERROR_INVALID_IDENTIFIER, NM_AGENT_MANAGER_ERROR_INVALID_IDENTIFIER,