we don't leak PPP fds to the charshunt.
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#define RCSID "$Id: tty.c,v 1.6 2001/03/12 22:59:01 paulus Exp $"
+#define RCSID "$Id: tty.c,v 1.7 2002/09/12 22:34:47 paulus Exp $"
#include <stdio.h>
#include <ctype.h>
#include <stdio.h>
#include <ctype.h>
if (getuid() != uid)
fatal("setuid failed");
setgid(getgid());
if (getuid() != uid)
fatal("setuid failed");
setgid(getgid());
if (!nodetach)
log_to_fd = -1;
charshunt(ifd, ofd, record_file);
if (!nodetach)
log_to_fd = -1;
charshunt(ifd, ofd, record_file);