]> code.citadel.org Git - citadel.git/commitdiff
citserver.c: removed cmd_extn() and related code
authorArt Cancro <ajc@citadel.org>
Sat, 19 Sep 1998 01:15:58 +0000 (01:15 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 19 Sep 1998 01:15:58 +0000 (01:15 +0000)
citadel/ChangeLog
citadel/citserver.c

index 306fcb75016db4bff072f6cdae0b57c238bcf9ef..be1874b832b80618770b2860a89d1124e6f4553a 100644 (file)
@@ -1,3 +1,6 @@
+Fri Sep 18 21:14:41 EDT 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
+       * citserver.c: removed cmd_extn() and related code
+
 1998-09-18 Nathan Bryant <bryant@cs.usm.maine.edu>
        * user_ops.c: include dynloader.h
        * roomstats.{c,mk}: removed
index b116345ad6116446665de594200575a993b05c4f..781e41893f7c6ddd52b173130dfcabc8505de2c5 100644 (file)
@@ -626,61 +626,6 @@ void cmd_scdn(char *argbuf)
        }
 
 
-/*
- * Run a server extension (FIX FIX FIX initial hack; polish this up)
- */
-void cmd_extn(char *argbuf) {
-       char ExtensionName[256];
-       int is_ipgm;
-       int pid;
-       char portstr[16];
-       char ipgm[32];
-       char sess[16];
-
-
-       extract(ExtensionName, argbuf, 0);
-       is_ipgm = extract_int(argbuf, 1);
-       
-       pid = fork();
-       lprintf(9, "fork() returned %d\n", pid);
-       if (pid < 0) {
-               cprintf("%d fork failed: %s\n",
-                       ERROR + INTERNAL_ERROR,
-                       strerror(errno));
-               return;
-               }
-       else if (pid == 0) {
-
-               sprintf(portstr, "%d", config.c_port_number);
-
-               if (is_ipgm)
-                       sprintf(ipgm, "%d", config.c_ipgm_secret);
-               else
-                       strcpy(ipgm, "");
-
-               sprintf(sess, "%d", CC->cs_pid);
-
-               execlp(ExtensionName, ExtensionName,
-                       "localhost",                    /* server address */
-                       portstr,                        /* port number */
-                       ipgm,                           /* ipgm secret */
-                       CC->usersupp.fullname,          /* user name */
-                       CC->usersupp.password,          /* password */
-                       CC->quickroom.QRname,           /* current room */
-                       sess,                           /* assoc session id */
-                       NULL);
-       
-               lprintf(9, "exec() failed: %s\n", strerror(errno));
-               exit(1);
-               }
-       else {
-               cprintf("%d Ok\n", OK);
-               }
-       }
-
-
-
-
 /*
  * main context loop
  */
@@ -1095,10 +1040,6 @@ void *context_loop(struct CitContext *con)
                        cmd_rchg(&cmdbuf[5]);
                        }
 
-               else if (!strncasecmp(cmdbuf, "EXTN", 4)) {
-                       cmd_extn(&cmdbuf[5]);
-                       }
-
                else if (!strncasecmp(cmdbuf, "AGUP", 4)) {
                        cmd_agup(&cmdbuf[5]);
                        }