asterisk/tests
George Joseph 3017f09f22 file.c/__ast_file_read_dirs: Fix issues on filesystems without d_type
One of the code paths in __ast_file_read_dirs will only get executed if
the OS doesn't support dirent->d_type OR if the filesystem the
particular file is on doesn't support it.  So, while standard Linux
systems support the field, some filesystems like XFS do not.  In this
case, we need to call stat() to determine whether the directory entry
is a file or directory so we append the filename to the supplied
directory path and call stat.  We forgot to truncate path back to just
the directory afterwards though so we were passing a complete file name
to the callback in the dir_name parameter instead of just the directory
name.

The logic has been re-written to only create a full_path if we need to
call stat() or if we need to descend into another directory.

Change-Id: I54e4228bd8355fad65200c6df3ec4c9c8a98dfba
2016-11-15 21:21:59 -05:00
..
Makefile Title update 2012-10-14 21:56:13 +00:00
test_abstract_jb.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_acl.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_ami_security_events.sh Add an API for reporting security events, and a security event logging module. 2009-07-11 19:15:03 +00:00
test_amihooks.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_aoc.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_app.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_ari.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_ari_model.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_ast_format_str_reduce.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_astobj2.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_astobj2_thrash.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_astobj2_weaken.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_bucket.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_callerid.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_cdr.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_cel.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_channel_feature_hooks.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_config.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_core_codec.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_core_format.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_db.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_devicestate.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_dlinklists.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_dns.c Merge "Replaces clock_gettime() with ast_tsnow()" 2015-08-10 11:27:12 -05:00
test_dns_naptr.c Unit tests: Fix more unit test description strings. 2015-06-24 17:13:31 -05:00
test_dns_query_set.c Replaces clock_gettime() with ast_tsnow() 2015-08-07 19:35:13 -05:00
test_dns_recurring.c Replaces clock_gettime() with ast_tsnow() 2015-08-07 19:35:13 -05:00
test_dns_srv.c Unit tests: Fix more unit test description strings. 2015-06-24 17:13:31 -05:00
test_endpoints.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_event.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_expr.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_file.c file.c/__ast_file_read_dirs: Fix issues on filesystems without d_type 2016-11-15 21:21:59 -05:00
test_format_cache.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_format_cap.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_func_file.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_gosub.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_hashtab_thrash.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_heap.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_http_media_cache.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_jitterbuf.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_json.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_linkedlists.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_locale.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_logger.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_media_cache.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_message.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_named_lock.c lock: Add named lock capability 2016-04-08 13:52:02 -05:00
test_netsock2.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_optional_api.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_pbx.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_poll.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_res_pjsip_scheduler.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_res_stasis.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_sched.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_scoped_lock.c ao2_iterator: Mini-audit of the ao2_iterator loops in the new code files. 2013-12-20 20:00:50 +00:00
test_security_events.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_skel.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_sorcery.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_sorcery_astdb.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_sorcery_memory_cache_thrash.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_sorcery_realtime.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_stasis.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_stasis_channels.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_stasis_endpoints.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_stringfields.c stringfields: Update extended string fields for master only. 2016-04-13 14:01:37 -06:00
test_strings.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_substitution.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_taskprocessor.c Multiple revisions 399887,400138,400178,400180-400181 2013-09-30 18:55:27 +00:00
test_threadpool.c Fix failing threadpool_auto_increment test. 2016-02-18 11:49:50 -06:00
test_time.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_uri.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_utils.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_uuid.c Add uuid wrapper API call ast_uuid_generate_str(). 2013-03-28 23:59:20 +00:00
test_vector.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_voicemail_api.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_websocket_client.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
test_xml_escape.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00