summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 84abd4c)
raw | patch | inline | side by side (parent: 84abd4c)
author | M. Sean Finney <seanius@users.sourceforge.net> | |
Tue, 6 Jun 2006 16:48:48 +0000 (16:48 +0000) | ||
committer | M. Sean Finney <seanius@users.sourceforge.net> | |
Tue, 6 Jun 2006 16:48:48 +0000 (16:48 +0000) |
reference: sf tracker #1500752
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1414 f882894a-f735-0410-b71e-b25c423dba1c
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1414 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_pgsql.c | patch | blob | history |
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c
index d56ce9b0e2b5e5264440e552c939c24c325df915..8cfc1ab5f558c8f7edf25cbb3a4eff35a307b3ab 100644 (file)
--- a/plugins/check_pgsql.c
+++ b/plugins/check_pgsql.c
return (FALSE);
strncpy (txt, dbname, NAMEDATALEN - 1);
txt[NAMEDATALEN - 1] = 0;
- if (sscanf (txt, "%[_a-zA-Z]%[^_a-zA-Z0-9]", tmp, tmp) == 1)
+ if (sscanf (txt, "%[_a-zA-Z]%[^_a-zA-Z0-9-]", tmp, tmp) == 1)
return (TRUE);
- if (sscanf (txt, "%[_a-zA-Z]%[_a-zA-Z0-9]%[^_a-zA-Z0-9]", tmp, tmp, tmp) ==
+ if (sscanf (txt, "%[_a-zA-Z]%[_a-zA-Z0-9-]%[^_a-zA-Z0-9-]", tmp, tmp, tmp) ==
2) return (TRUE);
return (FALSE);
}