From 96e43ebee731e5abf81bf8536dac3ca3d99512a3 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Thu, 2 Nov 2006 17:49:54 +0000 Subject: [PATCH] Merged revisions 46964 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r46964 | russell | 2006-11-02 12:47:56 -0500 (Thu, 02 Nov 2006) | 3 lines ignore files in a music on hold directory that begin with '.' (issue #8249, cboie) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46965 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_musiconhold.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index d6832009d8..6da58427f9 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -778,6 +778,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;