diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-12-19 18:22:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-12-19 18:22:20 +0000 |
commit | 15de71a29f22caee6b15956b162e1e5a0f5f4f3e (patch) | |
tree | 9118b73d3253af3cec9fff3a5599dca966a02ec4 /src/datastore/test_datastore_api.c | |
parent | fcfd24ac2947d5129307614e85f6fbba45104530 (diff) |
LRN patch from SVN 1630
Diffstat (limited to 'src/datastore/test_datastore_api.c')
-rw-r--r-- | src/datastore/test_datastore_api.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c index 06abc0c0f7..2edc9a6ecb 100644 --- a/src/datastore/test_datastore_api.c +++ b/src/datastore/test_datastore_api.c @@ -678,13 +678,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), @@ -699,6 +703,8 @@ main (int argc, char *argv[]) #endif NULL); ret = check (); + if (pos != plugin_name) + pos[0] = '.'; GNUNET_DISK_directory_remove (dir_name); return ret; } |