[Freeciv-Dev] Re: (PR#424) civserver --version as root
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Christian Knoke wrote:
> On Tue, Nov 12, 2002 at 01:36:14AM -0800, Jason Short via RT wrote:
>
>>[gkoopman@xxxxxxxxx - Fri Jun 30 12:46:53 2000]:
>>
>>
>>>It's OK that the civserver and civclient executables refuse to work
>>>for root, but shouldn't it be possible to do run them with options
>>>like --help and --version?
>>
>>This is a good point. Allowing it just require moving a few lines
>>(patch attached) so that we read in the command-line arguments (and
>>handle --help and --version) before calling dont_run_as_root.
>>
>>Note that this causes audio_init to be run for civclient - should this
>>function also be moved down?
>
>
> IMHO yes.
Unfortunately it cannot be. This function assembles the list of
available audio plugins, which is needed for --help.
But, it does not do any actual initialization of the audio, all it does
is set up local variables. So it shouldn't be a problem to call it as root.
jason
- [Freeciv-Dev] (PR#424) civserver --version as root, Jason Short via RT, 2002/11/12
- [Freeciv-Dev] (PR#424) civserver --version as root, Jason Short via RT, 2002/11/18
- [Freeciv-Dev] Re: (PR#424) civserver --version as root, Mike Kaufman via RT, 2002/11/18
- [Freeciv-Dev] Re: (PR#424) civserver --version as root, Raimar Falke, 2002/11/18
- [Freeciv-Dev] Re: (PR#424) civserver --version as root, Raimar Falke via RT, 2002/11/18
- [Freeciv-Dev] renaming audio_init, Jason Dorje Short, 2002/11/18
- [Freeciv-Dev] Re: renaming audio_init, Mike Kaufman, 2002/11/18
- [Freeciv-Dev] Re: renaming audio_init, Reinier Post, 2002/11/19
|
|