diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-03-08 18:08:52 -0500 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-03-08 17:26:41 -0600 |
commit | 35cfd2c0ccadceaf43f93e8f44936a6b1d9de876 (patch) | |
tree | 7916665304455e1375b811f9ec3347c954adfbea | |
parent | ff0569740a4f8c6135344131a11cc6ff49ea5fcf (diff) |
media_cache: Prefer ast_file_is_readable() over access()
Change-Id: Icc0dc6e61b2e68d5cdcb74b016b2726a388c7def
-rw-r--r-- | main/media_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/media_cache.c b/main/media_cache.c index 2592f353a..c58acdd59 100644 --- a/main/media_cache.c +++ b/main/media_cache.c @@ -225,7 +225,7 @@ int ast_media_cache_retrieve(const char *uri, const char *preferred_file_name, bucket_file = ao2_find(media_cache, uri, OBJ_SEARCH_KEY | OBJ_NOLOCK); if (bucket_file) { if (!ast_bucket_file_is_stale(bucket_file) - && !access(bucket_file->path, R_OK)) { + && ast_file_is_readable(bucket_file->path)) { ast_copy_string(file_path, bucket_file->path, len); if ((ext = strrchr(file_path, '.'))) { *ext = '\0'; |