From a8ad3da74e626177159bb81e0272ea5f767b0dd0 Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Fri, 3 Sep 2010 00:36:42 -0400 Subject: [PATCH] switch_dir_next_file() should also match symlinks --- src/switch_apr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_apr.c b/src/switch_apr.c index ba44ad224a..bdff179b4a 100644 --- a/src/switch_apr.c +++ b/src/switch_apr.c @@ -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; }