[xiph-cvs] cvs commit: icecast/src main.c

Michael Smith msmith at labyrinth.net.au
Mon May 20 23:32:44 PDT 2002



At 08:09 PM 5/20/02 -0600, you wrote:
>>   Modified:    src      main.c
>>   Log:
>>   Fix segfault from called log functions before log was initialised.
>
>Um, is there a reason that log_initialize gets called so late?

Yes. People want to be able to start as root (to bind to low ports, for
example), then setuid() to another user. So the setuid() has to occur
after binding the socket, but before the logs are opened (because people
don't want to be opening log files as root).

Michael

<p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list