From b6e001ce8d74a5576ef067e1428c078f728ea04e Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 1 Oct 2004 00:42:19 +0000 Subject: [PATCH] When creating a source (in source_reserve), issue a warning if the mountpoint does not start with a /, since clients will then be unable to connect to it svn path=/icecast/trunk/icecast/; revision=7899 --- src/source.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/source.c b/src/source.c index b6426c6b..fcdd016b 100644 --- a/src/source.c +++ b/src/source.c @@ -70,6 +70,10 @@ source_t *source_reserve (const char *mount) { source_t *src = NULL; + if(mount[0] != '/') + WARN1("Source at \"%s\" does not start with '/', clients will be " + "unable to connect", mount); + do { avl_tree_wlock (global.source_tree);