diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-02 17:49:54 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-02 17:49:54 +0000 |
commit | 338adaea706c4c0068a12270543d21c8e1a43c98 (patch) | |
tree | 45accb2f119052111eeb922f179d763d2f4fb1b4 /res | |
parent | fe4ad79da758dc7fc892ee947635350ecfa04c6d (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@46965 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_musiconhold.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index d6832009d..6da58427f 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; |