1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

added a warning in case mount of type default is defined but a mountname is set

svn path=/icecast/trunk/icecast/; revision=18909
This commit is contained in:
Philipp Schafft 2013-04-05 19:49:13 +00:00
parent 4ba4b3d1dd
commit b4887fc581

View File

@ -715,6 +715,10 @@ static void _parse_mount(xmlDocPtr doc, xmlNodePtr node,
config_clear_mount (mount);
return;
}
else if (mount->mountname != NULL && mount->mounttype == MOUNT_TYPE_DEFAULT)
{
WARN1("Default mount %s has mountpoint set. This is an unoffical feature and should not be used.", mount->mountname);
}
if (mount->auth)
mount->auth->mount = strdup ((char *)mount->mountname);
while(current) {