Displaying 6 results from an estimated 6 matches for "log_default".
2004 Aug 06
0
[PATCH] Configurable privileges and chroot jail
...id drop_privileges()
+{
+#ifdef _WIN32
+ return;
+#else
+ struct passwd *pwd;
+ uid_t uid, cuid;
+ gid_t gid;
+
+ if (info.icecast_user != 0) {
+ pwd = getpwnam(info.icecast_user);
+ if (!pwd) {
+ write_log (LOG_DEFAULT, "ERROR: icecast_user %s doesn't exist",
+ info.icecast_user);
+ clean_shutdown (&info);
+ }
+
+ /* These will get clobbered during the chroot, so save them */
+ uid = pwd->pw_...
2004 Aug 06
5
Missing headers in Icecast2
Hi Karl,
Thanks for your help,
About the "Connection:" header, you are right, it's:
"Connection: close" and NOT "Connection: keep-alive". The protocol when the
SERVER sends the data is http 1.0. It's http 1.1 when the browser requests
the data.
I don't understand the "Content-Length: 54000000" header either. Also I
noticed the flash player on
2004 Aug 06
2
Transparent Proxy
Hi,
The only need I have for icecast is as a transparent proxy. The problem
is I can't get it to work as one, is this feature implemented?
When I setup XMMS with a proxy of the computer running icecast (1.3.11)
I get this in the logs when trying to connect to a stream:
[16/Sep/2001:23:59:31] [9:Connection Handler] Accepted encoder on
mountpoint 205.188.234.34:8004/ from
2004 Aug 06
0
Transparent Proxy
...Stansfield wrote:
> Hi,
>
> The only need I have for icecast is as a transparent proxy. The problem
> is I can't get it to work as one, is this feature implemented
I fixed the problem, it seemed that in source.c in the function
source_login in this piece of code:
--
write_log (LOG_DEFAULT, "Accepted encoder on mountpoint %s from %s. %d
sources connected", source->audiocast.mount, con_host (con),
info.num_sources);
thread_mutex_lock(&info.source_mutex);
avl_insert(info.sources, con);
thread_mutex_unlock(&info.source_mutex);
--
I found that the code was stoppin...
2004 Aug 06
6
URGENT: security exploit fix
...================================
RCS file: /cvsroot/icecast/src/avl_functions.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- avl_functions.c 26 May 2000 15:47:55 -0000 1.8
+++ avl_functions.c 10 Apr 2002 21:36:27 -0000 1.9
@@ -156,8 +156,8 @@
write_log (LOG_DEFAULT, "WARNING: compare_relays() called with NULL pointers!");
}
- sprintf (cfirst, "%s:%d%s", r1->req.host, r1->req.port, r1->req.path);
- sprintf (csecond, "%s:%d%s", r2->req.host, r2->req.port, r2->req.path);
+ snprintf (cfirst, BUFSIZE, &quo...
2004 Aug 06
6
URGENT: security exploit fix
...================================
RCS file: /cvsroot/icecast/src/avl_functions.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- avl_functions.c 26 May 2000 15:47:55 -0000 1.8
+++ avl_functions.c 10 Apr 2002 21:36:27 -0000 1.9
@@ -156,8 +156,8 @@
write_log (LOG_DEFAULT, "WARNING: compare_relays() called with NULL pointers!");
}
- sprintf (cfirst, "%s:%d%s", r1->req.host, r1->req.port, r1->req.path);
- sprintf (csecond, "%s:%d%s", r2->req.host, r2->req.port, r2->req.path);
+ snprintf (cfirst, BUFSIZE, &quo...