aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/perf_plugin_datastore.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-12-19 18:22:20 +0000
committerChristian Grothoff <christian@grothoff.org>2010-12-19 18:22:20 +0000
commit15de71a29f22caee6b15956b162e1e5a0f5f4f3e (patch)
tree9118b73d3253af3cec9fff3a5599dca966a02ec4 /src/datastore/perf_plugin_datastore.c
parentfcfd24ac2947d5129307614e85f6fbba45104530 (diff)
downloadgnunet-15de71a29f22caee6b15956b162e1e5a0f5f4f3e.tar.gz
gnunet-15de71a29f22caee6b15956b162e1e5a0f5f4f3e.zip
LRN patch from SVN 1630
Diffstat (limited to 'src/datastore/perf_plugin_datastore.c')
-rw-r--r--src/datastore/perf_plugin_datastore.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/datastore/perf_plugin_datastore.c b/src/datastore/perf_plugin_datastore.c
index c55fb6258..facf7be67 100644
--- a/src/datastore/perf_plugin_datastore.c
+++ b/src/datastore/perf_plugin_datastore.c
@@ -415,13 +415,17 @@ int
415main (int argc, char *argv[]) 415main (int argc, char *argv[])
416{ 416{
417 int ret; 417 int ret;
418 const char *pos; 418 char *pos;
419 char dir_name[128]; 419 char dir_name[128];
420 420
421 /* determine name of plugin to use */ 421 /* determine name of plugin to use */
422 plugin_name = argv[0]; 422 plugin_name = argv[0];
423 while (NULL != (pos = strstr(plugin_name, "_"))) 423 while (NULL != (pos = strstr(plugin_name, "_")))
424 plugin_name = pos+1; 424 plugin_name = pos+1;
425 if (NULL != (pos = strstr(plugin_name, ".")))
426 pos[0] = 0;
427 else
428 pos = (char *) plugin_name;
425 429
426 GNUNET_snprintf (dir_name, 430 GNUNET_snprintf (dir_name,
427 sizeof (dir_name), 431 sizeof (dir_name),
@@ -436,6 +440,8 @@ main (int argc, char *argv[])
436#endif 440#endif
437 NULL); 441 NULL);
438 ret = check (); 442 ret = check ();
443 if (pos != plugin_name)
444 pos[0] = '.';
439 GNUNET_DISK_directory_remove (dir_name); 445 GNUNET_DISK_directory_remove (dir_name);
440 446
441 return ret; 447 return ret;