Complete.Org: Mailing Lists: Archives: freeciv: August 2001:
[Freeciv] Setuid'ing a Civ Server / Saving games.
Home

[Freeciv] Setuid'ing a Civ Server / Saving games.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv@xxxxxxxxxxx
Subject: [Freeciv] Setuid'ing a Civ Server / Saving games.
From: strub_p@xxxxxxxxxxxxx
Date: Thu, 16 Aug 2001 07:49:45 +0200

        Hi,

        Currently, when civserver has a setuid, it doesn't save the
games with the real user ID of the user whose initiates the game. So,
the games must be saved in a spool owned by the effective user.

        An another solution is to switch real and effective UID
(setreuid) before opening a file and restore them after.

        Comments ? Regards,

                Pierre-Yves Strub.


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