2005-12-09 Carl Worth <cworth@cworth.org>
authorCarl Worth <carl@theworths.org>
Fri, 9 Dec 2005 17:10:08 +0000 (17:10 +0000)
committerCarl Worth <carl@theworths.org>
Fri, 9 Dec 2005 17:10:08 +0000 (17:10 +0000)
commit3dfae8f4b1127a62f3acc299683a8fbd63b908df
tree2e19d5f5d1fe0a66ba205905038c6167ef46db25
parentea0446f90218c7c4d7f0296265039036a9fb2740
2005-12-09  Carl Worth  <cworth@cworth.org>

        * src/ttt-args.h:
        * src/ttt-args.c: (ttt_args_help), (ttt_args_parse): Add a -u,
        --user option for controlling the uid under which the server
        process runs.

        * src/ttt.h:
        * src/ttt-server.c: (ttt_server_register_client), (main): Recert
        the dup of stdout which wasn't working. Instead just print client
        join information on stderr so that it goes into the log. Implement
        support for the user option by calling setuid to drop root
        privileges the process might start out with.
ChangeLog
src/ttt-args.c
src/ttt-args.h
src/ttt-server.c
src/ttt.h