Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2002:
[Freeciv-Dev] Re: (PR#424) civserver --version as root
Home

[Freeciv-Dev] Re: (PR#424) civserver --version as root

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: gkoopman@xxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#424) civserver --version as root
From: "Jason Short via RT" <rt@xxxxxxxxxxxxxx>
Date: Tue, 12 Nov 2002 13:51:23 -0800
Reply-to: rt@xxxxxxxxxxxxxx

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




[Prev in Thread] Current Thread [Next in Thread]