aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/res_musiconhold.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 44cc5498f..0902602b7 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -780,6 +780,10 @@ static int moh_scan_files(struct mohclass *class) {
if ((strlen(files_dirent->d_name) < 4))
continue;
+ /* Skip files that starts with a dot */
+ if (files_dirent->d_name[0] == '.')
+ continue;
+
/* Skip files without extensions... they are not audio */
if (!strchr(files_dirent->d_name, '.'))
continue;