From 47dd39a67c473bab4812403417f6c28f986e784d Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Wed, 3 Apr 2013 00:46:55 +0000 Subject: [PATCH] do fuzzy(fnmatch) matching for mountpoint names of non-normal mounts, see #1914 svn path=/icecast/trunk/icecast/; revision=18904 --- src/cfgfile.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cfgfile.c b/src/cfgfile.c index 9f7465b8..f43e8993 100644 --- a/src/cfgfile.c +++ b/src/cfgfile.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -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; }