diff options
Diffstat (limited to 'src/datastore/perf_plugin_datastore.c')
-rw-r--r-- | src/datastore/perf_plugin_datastore.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/datastore/perf_plugin_datastore.c b/src/datastore/perf_plugin_datastore.c index c55fb6258d..facf7be670 100644 --- a/src/datastore/perf_plugin_datastore.c +++ b/src/datastore/perf_plugin_datastore.c @@ -415,13 +415,17 @@ int main (int argc, char *argv[]) { int ret; - const char *pos; + char *pos; char dir_name[128]; /* determine name of plugin to use */ plugin_name = argv[0]; while (NULL != (pos = strstr(plugin_name, "_"))) plugin_name = pos+1; + if (NULL != (pos = strstr(plugin_name, "."))) + pos[0] = 0; + else + pos = (char *) plugin_name; GNUNET_snprintf (dir_name, sizeof (dir_name), @@ -436,6 +440,8 @@ main (int argc, char *argv[]) #endif NULL); ret = check (); + if (pos != plugin_name) + pos[0] = '.'; GNUNET_DISK_directory_remove (dir_name); return ret; |