switch_dir_next_file() should also match symlinks

This commit is contained in:
Mathieu Rene 2010-09-03 00:36:42 -04:00
parent a5cd2df89a
commit a8ad3da74e
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ SWITCH_DECLARE(const char *) switch_dir_next_file(switch_dir_t *thedir, char *bu
while (apr_dir_read(&(thedir->finfo), finfo_flags, thedir->dir_handle) == SWITCH_STATUS_SUCCESS) {
if (thedir->finfo.filetype != APR_REG) {
if (thedir->finfo.filetype != APR_REG && thedir->finfo.filetype != APR_LNK) {
continue;
}