summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--p11-kit/conf.c1
-rw-r--r--trust/save.c1
-rw-r--r--trust/token.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/p11-kit/conf.c b/p11-kit/conf.c
index a2b46c4..2138d3e 100644
--- a/p11-kit/conf.c
+++ b/p11-kit/conf.c
@@ -450,7 +450,6 @@ load_configs_from_directory (const char *directory,
return false;
}
- /* We're within a global mutex, so readdir is safe */
while ((dp = readdir(dir)) != NULL) {
path = p11_path_build (directory, dp->d_name, NULL);
return_val_if_fail (path != NULL, false);
diff --git a/trust/save.c b/trust/save.c
index 1533c08..acef483 100644
--- a/trust/save.c
+++ b/trust/save.c
@@ -543,7 +543,6 @@ cleanup_directory (const char *directory,
remove = p11_dict_new (p11_dict_str_hash, p11_dict_str_equal, free, NULL);
- /* We're within a global mutex, so readdir is safe */
while ((dp = readdir (dir)) != NULL) {
if (p11_dict_get (cache, dp->d_name))
continue;
diff --git a/trust/token.c b/trust/token.c
index 0641619..c91acd2 100644
--- a/trust/token.c
+++ b/trust/token.c
@@ -260,7 +260,6 @@ loader_load_directory (p11_token *token,
return 0;
}
- /* We're within a global mutex, so readdir is safe */
while ((dp = readdir (dir)) != NULL) {
path = p11_path_build (directory, dp->d_name, NULL);
return_val_if_fail (path != NULL, -1);