1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-01-03 14:56:34 -05:00

do fuzzy(fnmatch) matching for mountpoint names of non-normal mounts, see #1914

svn path=/icecast/trunk/icecast/; revision=18904
This commit is contained in:
Philipp Schafft 2013-04-03 00:46:55 +00:00
parent 53e8553035
commit 47dd39a67c

View File

@ -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;
}