]> code.citadel.org Git - citadel.git/blob - citadel/citlogin.c
* more of the same fix
[citadel.git] / citadel / citlogin.c
1 /* 
2  * $Id$
3  *
4  * A simple wrapper for the Citadel client.  This allows telnetd to call
5  * Citadel without a system login.
6  *
7  */
8
9 #include <stdlib.h>
10 #include <unistd.h>
11 #include <fcntl.h>
12 #include <stdio.h>
13 #include <time.h>
14 #include <string.h>
15 #include <errno.h>
16 #include "citadel.h"
17
18 void get_config(void);
19 struct config config;
20
21 int main (int argc, char **argv) {
22         get_config();
23         setuid(config.c_bbsuid);
24         execlp("./citadel", "citadel", NULL);
25         exit(errno);
26 }