diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-29 21:20:17 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-29 21:20:17 +0000 |
commit | ee4d754ebbcc11369dd7e78b50db733e3b921fc2 (patch) | |
tree | 547c981117541be04bae9cd18b9bdceeb51be5d9 /src/fs/gnunet-helper-fs-publish.c | |
parent | 6f912718b1e65181e9e3a62c6c7b8cf32f7d1165 (diff) | |
download | gnunet-ee4d754ebbcc11369dd7e78b50db733e3b921fc2.tar.gz gnunet-ee4d754ebbcc11369dd7e78b50db733e3b921fc2.zip |
-towards external meta scanner process
Diffstat (limited to 'src/fs/gnunet-helper-fs-publish.c')
-rw-r--r-- | src/fs/gnunet-helper-fs-publish.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/fs/gnunet-helper-fs-publish.c b/src/fs/gnunet-helper-fs-publish.c index 21ec19fe9..7accf79ac 100644 --- a/src/fs/gnunet-helper-fs-publish.c +++ b/src/fs/gnunet-helper-fs-publish.c | |||
@@ -223,9 +223,10 @@ scan_callback (void *cls, | |||
223 | return GNUNET_SYSERR; | 223 | return GNUNET_SYSERR; |
224 | } | 224 | } |
225 | chld->parent = rc->parent; | 225 | chld->parent = rc->parent; |
226 | GNUNET_CONTAINER_DLL_insert (rc->parent->children_head, | 226 | if (NULL != rc->parent) |
227 | rc->parent->children_tail, | 227 | GNUNET_CONTAINER_DLL_insert (rc->parent->children_head, |
228 | chld); | 228 | rc->parent->children_tail, |
229 | chld); | ||
229 | return GNUNET_OK; | 230 | return GNUNET_OK; |
230 | } | 231 | } |
231 | 232 | ||
@@ -282,6 +283,10 @@ preprocess_file (const char *filename, | |||
282 | free_tree (item); | 283 | free_tree (item); |
283 | return GNUNET_SYSERR; | 284 | return GNUNET_SYSERR; |
284 | } | 285 | } |
286 | if (GNUNET_OK != | ||
287 | write_message (GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_PROGRESS_DIRECTORY, | ||
288 | "..", 3)) | ||
289 | return GNUNET_SYSERR; | ||
285 | } | 290 | } |
286 | *dst = item; | 291 | *dst = item; |
287 | return GNUNET_OK; | 292 | return GNUNET_OK; |
@@ -379,7 +384,8 @@ int main(int argc, | |||
379 | } | 384 | } |
380 | filename_expanded = argv[1]; | 385 | filename_expanded = argv[1]; |
381 | ex = argv[2]; | 386 | ex = argv[2]; |
382 | if (0 != strcmp (ex, "-")) | 387 | if ( (ex == NULL) || |
388 | (0 != strcmp (ex, "-")) ) | ||
383 | { | 389 | { |
384 | plugins = EXTRACTOR_plugin_add_defaults (EXTRACTOR_OPTION_DEFAULT_POLICY); | 390 | plugins = EXTRACTOR_plugin_add_defaults (EXTRACTOR_OPTION_DEFAULT_POLICY); |
385 | if (NULL != ex) | 391 | if (NULL != ex) |