]> code.citadel.org Git - citadel.git/commitdiff
* Replaced the "citlogin" binary wrapper with the "loginwrapper.sh" script.
authorArt Cancro <ajc@citadel.org>
Sun, 11 Mar 2001 22:09:20 +0000 (22:09 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 11 Mar 2001 22:09:20 +0000 (22:09 +0000)
citadel/ChangeLog
citadel/citlogin.c [deleted file]
citadel/loginwrapper.sh [new file with mode: 0755]

index d9ddcf8d67af08c27317c396d8e015ddd202df2c..ef2242b5525e667243793af0c80fee0ea5b7d886 100644 (file)
@@ -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 <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
-
diff --git a/citadel/citlogin.c b/citadel/citlogin.c
deleted file mode 100644 (file)
index 117bf8e..0000000
+++ /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 <stdlib.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <time.h>
-#include <string.h>
-#include <errno.h>
-#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 (executable)
index 0000000..41373e2
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /bin/login $* bbs