summaryrefslogtreecommitdiff
path: root/trust
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2013-07-16 17:14:56 +0200
committerStef Walter <stef@thewalter.net>2013-07-17 14:45:42 +0200
commit82738fe7d6143cb25fc1cb201a75b8a071043be8 (patch)
tree0c3cc205eef9c93ec84683799ef5542216535017 /trust
parentd00f6b24e5349d8d37868b8f4451b1dc9b38767e (diff)
Remove erroneous comments about readdir() and thread-safety
https://bugzilla.redhat.com/show_bug.cgi?id=984989
Diffstat (limited to 'trust')
-rw-r--r--trust/save.c1
-rw-r--r--trust/token.c1
2 files changed, 0 insertions, 2 deletions
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);