fix
authorChristian Grothoff <christian@grothoff.org>
Mon, 26 Oct 2009 08:53:34 +0000 (08:53 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 26 Oct 2009 08:53:34 +0000 (08:53 +0000)
src/fs/Makefile.am
src/fs/fs_file_information.c

index 4d00a40612568eb879d35a6d74f9c2cf9dd1138b..e23b6fc255efc3e61842a8e1c23bb7f570586cc7 100644 (file)
@@ -120,6 +120,7 @@ TESTS = \
  test_fs_directory \
  test_fs_download \
  test_fs_file_information \
+ test_fs_list_indexed \
  test_fs_search \
  test_fs_start_stop \
  test_fs_unindex \
index 0d92229662240de3d2651c42b09e7f7595100621..2f8bbbdc945fd367e2501c624405f2f1fba308bd 100644 (file)
@@ -758,7 +758,7 @@ GNUNET_FS_file_information_inspect (struct GNUNET_FS_FileInformation *dir,
        {
          proc (proc_cls, 
                pos,
-               pos->data.dir.dir_size,
+               (pos->is_directory) ? pos->data.dir.dir_size : pos->data.file.file_size,
                pos->meta,
                &pos->keywords,
                &pos->anonymity,