Commit 47dd39a6 authored by Philipp Schafft's avatar Philipp Schafft 🦁

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

svn path=/icecast/trunk/icecast/; revision=18904
parent 53e85530
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment