diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-11-07 16:56:55 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-11-07 16:56:55 +0000 |
commit | fc8e308ea06aff671dc1d21e99e8b42bf5c2fda1 (patch) | |
tree | d85027a39b401f7e1cd766a3f8d9f992393d0517 /src/fs/fs_api.c | |
parent | ad47a1f332a5aa12d7b56e2b552fcdad65a90bbf (diff) | |
download | gnunet-fc8e308ea06aff671dc1d21e99e8b42bf5c2fda1.tar.gz gnunet-fc8e308ea06aff671dc1d21e99e8b42bf5c2fda1.zip |
Parameterized directory listing permission check
Diffstat (limited to 'src/fs/fs_api.c')
-rw-r--r-- | src/fs/fs_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c index 059c70ba6..f03cdb8e4 100644 --- a/src/fs/fs_api.c +++ b/src/fs/fs_api.c | |||
@@ -738,7 +738,7 @@ GNUNET_FS_remove_sync_dir_ (struct GNUNET_FS_Handle *h, const char *ext, | |||
738 | dn = get_serialization_file_name_in_dir (h, ext, uni, ""); | 738 | dn = get_serialization_file_name_in_dir (h, ext, uni, ""); |
739 | if (NULL == dn) | 739 | if (NULL == dn) |
740 | return; | 740 | return; |
741 | if ((GNUNET_OK == GNUNET_DISK_directory_test (dn)) && | 741 | if ((GNUNET_YES == GNUNET_DISK_directory_test (dn, GNUNET_YES)) && |
742 | (GNUNET_OK != GNUNET_DISK_directory_remove (dn))) | 742 | (GNUNET_OK != GNUNET_DISK_directory_remove (dn))) |
743 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "rmdir", dn); | 743 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "rmdir", dn); |
744 | GNUNET_free (dn); | 744 | GNUNET_free (dn); |
@@ -2700,7 +2700,7 @@ deserialize_download (struct GNUNET_FS_Handle *h, | |||
2700 | dn = get_download_sync_filename (dc, dc->serialization, ".dir"); | 2700 | dn = get_download_sync_filename (dc, dc->serialization, ".dir"); |
2701 | if (NULL != dn) | 2701 | if (NULL != dn) |
2702 | { | 2702 | { |
2703 | if (GNUNET_YES == GNUNET_DISK_directory_test (dn)) | 2703 | if (GNUNET_YES == GNUNET_DISK_directory_test (dn, GNUNET_YES)) |
2704 | GNUNET_DISK_directory_scan (dn, &deserialize_subdownload, dc); | 2704 | GNUNET_DISK_directory_scan (dn, &deserialize_subdownload, dc); |
2705 | GNUNET_free (dn); | 2705 | GNUNET_free (dn); |
2706 | } | 2706 | } |
@@ -2813,7 +2813,7 @@ deserialize_search (struct GNUNET_FS_Handle *h, | |||
2813 | sc->serialization, ""); | 2813 | sc->serialization, ""); |
2814 | if (NULL != dn) | 2814 | if (NULL != dn) |
2815 | { | 2815 | { |
2816 | if (GNUNET_YES == GNUNET_DISK_directory_test (dn)) | 2816 | if (GNUNET_YES == GNUNET_DISK_directory_test (dn, GNUNET_YES)) |
2817 | GNUNET_DISK_directory_scan (dn, &deserialize_search_result, sc); | 2817 | GNUNET_DISK_directory_scan (dn, &deserialize_search_result, sc); |
2818 | GNUNET_free (dn); | 2818 | GNUNET_free (dn); |
2819 | } | 2819 | } |
@@ -2940,7 +2940,7 @@ deserialization_master (const char *master_path, GNUNET_FileNameCallback proc, | |||
2940 | dn = get_serialization_file_name (h, master_path, ""); | 2940 | dn = get_serialization_file_name (h, master_path, ""); |
2941 | if (NULL == dn) | 2941 | if (NULL == dn) |
2942 | return; | 2942 | return; |
2943 | if (GNUNET_YES == GNUNET_DISK_directory_test (dn)) | 2943 | if (GNUNET_YES == GNUNET_DISK_directory_test (dn, GNUNET_YES)) |
2944 | GNUNET_DISK_directory_scan (dn, proc, h); | 2944 | GNUNET_DISK_directory_scan (dn, proc, h); |
2945 | GNUNET_free (dn); | 2945 | GNUNET_free (dn); |
2946 | } | 2946 | } |