Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
47dd39a6
Commit
47dd39a6
authored
Apr 03, 2013
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do fuzzy(fnmatch) matching for mountpoint names of non-normal mounts, see #1914
svn path=/icecast/trunk/icecast/; revision=18904
parent
53e85530
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/cfgfile.c
src/cfgfile.c
+5
-1
No files found.
src/cfgfile.c
View file @
47dd39a6
...
...
@@ -20,6 +20,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fnmatch.h>
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
...
...
@@ -1239,7 +1240,10 @@ mount_proxy *config_find_mount (ice_config_t *config, const char *mount, mount_t
if
(
mount
==
NULL
||
mountinfo
->
mountname
==
NULL
)
break
;
if
(
strcmp
(
mountinfo
->
mountname
,
mount
)
==
0
)
if
(
mountinfo
->
mounttype
==
MOUNT_TYPE_NORMAL
&&
strcmp
(
mountinfo
->
mountname
,
mount
)
==
0
)
break
;
if
(
fnmatch
(
mountinfo
->
mountname
,
mount
,
FNM_PATHNAME
)
==
0
)
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment