Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
102
Issues
102
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
d670683e
Commit
d670683e
authored
Nov 20, 2005
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow for the intro file to change over HUP
svn path=/icecast/trunk/icecast/; revision=10411
parent
11c6e103
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
src/source.c
src/source.c
+11
-3
No files found.
src/source.c
View file @
d670683e
...
...
@@ -1091,7 +1091,12 @@ static void source_apply_mount (source_t *source, mount_proxy *mountinfo)
else
source
->
dumpfilename
=
NULL
;
if
(
mountinfo
&&
mountinfo
->
intro_filename
&&
source
->
intro_file
==
NULL
)
if
(
source
->
intro_file
)
{
fclose
(
source
->
intro_file
);
source
->
intro_file
=
NULL
;
}
if
(
mountinfo
&&
mountinfo
->
intro_filename
)
{
ice_config_t
*
config
=
config_get_config_unlocked
();
unsigned
int
len
=
strlen
(
config
->
webroot_dir
)
+
...
...
@@ -1099,11 +1104,14 @@ static void source_apply_mount (source_t *source, mount_proxy *mountinfo)
char
*
path
=
malloc
(
len
);
if
(
path
)
{
FILE
*
f
;
snprintf
(
path
,
len
,
"%s"
PATH_SEPARATOR
"%s"
,
config
->
webroot_dir
,
mountinfo
->
intro_filename
);
source
->
intro_file
=
fopen
(
path
,
"rb"
);
if
(
source
->
intro_file
==
NULL
)
f
=
fopen
(
path
,
"rb"
);
if
(
f
)
source
->
intro_file
=
f
;
else
WARN2
(
"Cannot open intro file
\"
%s
\"
: %s"
,
path
,
strerror
(
errno
));
free
(
path
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment