From 8019087212487f1532e2bea16a45703c54a357a0 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sun, 11 Mar 2001 22:09:20 +0000 Subject: [PATCH] * Replaced the "citlogin" binary wrapper with the "loginwrapper.sh" script. --- citadel/ChangeLog | 4 +++- citadel/citlogin.c | 26 -------------------------- citadel/loginwrapper.sh | 3 +++ 3 files changed, 6 insertions(+), 27 deletions(-) delete mode 100644 citadel/citlogin.c create mode 100755 citadel/loginwrapper.sh diff --git a/citadel/ChangeLog b/citadel/ChangeLog index d9ddcf8d6..ef2242b55 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,7 @@ $Log$ + Revision 573.113 2001/03/11 22:09:20 ajc + * Replaced the "citlogin" binary wrapper with the "loginwrapper.sh" script. + Revision 573.112 2001/03/11 20:06:53 ajc * Fixed bug that created incorrect roomnames when sending pages @@ -2450,4 +2453,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import - diff --git a/citadel/citlogin.c b/citadel/citlogin.c deleted file mode 100644 index 117bf8eac..000000000 --- a/citadel/citlogin.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * $Id$ - * - * A simple wrapper for the Citadel client. This allows telnetd to call - * Citadel without a system login. - * - */ - -#include -#include -#include -#include -#include -#include -#include -#include "citadel.h" - -void get_config(void); -struct config config; - -int main (int argc, char **argv) { - get_config(); - setuid(config.c_bbsuid); - execlp("./citadel", "citadel", NULL); - exit(errno); -} diff --git a/citadel/loginwrapper.sh b/citadel/loginwrapper.sh new file mode 100755 index 000000000..41373e2b5 --- /dev/null +++ b/citadel/loginwrapper.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +exec /bin/login $* bbs -- 2.39.2