[asterisk-commits] russell: branch 1.4 r46965 - in /branches/1.4:
./ res/res_musiconhold.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Nov 2 10:49:55 MST 2006
Author: russell
Date: Thu Nov 2 11:49:54 2006
New Revision: 46965
URL: http://svn.digium.com/view/asterisk?rev=46965&view=rev
Log:
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)
........
Modified:
branches/1.4/ (props changed)
branches/1.4/res/res_musiconhold.c
Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Modified: branches/1.4/res/res_musiconhold.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_musiconhold.c?rev=46965&r1=46964&r2=46965&view=diff
==============================================================================
--- branches/1.4/res/res_musiconhold.c (original)
+++ branches/1.4/res/res_musiconhold.c Thu Nov 2 11:49:54 2006
@@ -776,6 +776,10 @@
while ((files_dirent = readdir(files_DIR))) {
/* The file name must be at least long enough to have the file type extension */
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 */
More information about the asterisk-commits
mailing list