Support arbitrary suffixes for actions, same action multiple times
authorMartin Willi <martin@revosec.ch>
Tue, 9 Nov 2010 10:07:37 +0000 (11:07 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 5 Jan 2011 15:45:42 +0000 (16:45 +0100)
src/conftest/actions.c

index 92b523f..e376661 100644 (file)
@@ -273,7 +273,7 @@ static void load_action(settings_t *settings, char *action)
 
        for (i = 0; i < countof(actions); i++)
        {
-               if (strcaseeq(actions[i].name, action))
+               if (strncasecmp(actions[i].name, action, strlen(actions[i].name)) == 0)
                {
                        int delay;
                        char *config;