=== modified file 'TODO' --- TODO 2014-03-09 03:02:43 +0000 +++ TODO 2014-03-10 06:34:36 +0000 @@ -50,6 +50,7 @@ ** TODO [#C] use same file name rules as run-parts(8) ** kernel command line option for debug info ** TODO [#B] Use openat() +** TODO [#C] Use fnmatch() to look for bad prefixes and suffixes * mandos (server) ** TODO [#B] Log level :BUGS: === modified file 'plugins.d/mandos-client.c' --- plugins.d/mandos-client.c 2014-03-09 03:02:43 +0000 +++ plugins.d/mandos-client.c 2014-03-10 06:34:36 +0000 @@ -232,6 +232,11 @@ perror_plus("strdup"); return false; } + ret = clock_gettime(CLOCK_MONOTONIC, &(new_server->last_seen)); + if(ret == -1){ + perror_plus("clock_gettime"); + return false; + } /* Special case of first server */ if(*current_server == NULL){ new_server->next = new_server; @@ -244,11 +249,6 @@ new_server->prev->next = new_server; (*current_server)->prev = new_server; } - ret = clock_gettime(CLOCK_MONOTONIC, &(*current_server)->last_seen); - if(ret == -1){ - perror_plus("clock_gettime"); - return false; - } return true; }