* Run netproc -i after a successful NUOP
authorArt Cancro <ajc@citadel.org>
Sat, 16 Oct 1999 03:53:46 +0000 (03:53 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 16 Oct 1999 03:53:46 +0000 (03:53 +0000)
citadel/file_ops.c
citadel/network/systems/uncnsrd [deleted file]

index 6dfccb4e239ffe92983297b94a81f9ffb247add0..17bc5dcda25a3f284229db96ab5b48728e350b14 100644 (file)
@@ -528,7 +528,7 @@ void cmd_ucls(char *cmd)
        if (CC->upload_fp == NULL) {
                cprintf("%d You don't have an upload file open.\n",ERROR);
                return;
-               }
+       }
 
        fclose(CC->upload_fp);
        CC->upload_fp = NULL;
@@ -536,9 +536,17 @@ void cmd_ucls(char *cmd)
        if ((!strcasecmp(cmd,"1")) && (CC->upload_type != UPL_FILE)) {
                CC->upload_type = UPL_FILE;
                cprintf("%d Upload completed.\n", OK);
-               return;
+
+               if (CC->upload_type == UPL_NET) {
+                       if (fork()==0) {
+                               execlp("./netproc", "netproc", "-i", NULL);
+                               exit(errno);
+                       }
                }
 
+               return;
+       }
+
        if (!strcasecmp(cmd,"1")) {
                cprintf("%d File '%s' saved.\n",OK,CC->upl_path);
                fp = fopen(CC->upl_filedir,"a");
@@ -546,7 +554,7 @@ void cmd_ucls(char *cmd)
                if (fp!=NULL) {
                        fprintf(fp,"%s %s\n",CC->upl_file,CC->upl_comment);
                        fclose(fp);
-                       }
+               }
 
                /* put together an upload notice */
                sprintf(upload_notice,
@@ -554,12 +562,14 @@ void cmd_ucls(char *cmd)
                        CC->upl_file,CC->upl_comment);
                quickie_message(CC->curr_user, NULL, CC->quickroom.QRname,
                                upload_notice);
-               }
+       }
        else {
                abort_upl(CC);
                cprintf("%d File '%s' aborted.\n",OK,CC->upl_path);
-               }
        }
+}
+
+
 
 /*
  * read from the download file
diff --git a/citadel/network/systems/uncnsrd b/citadel/network/systems/uncnsrd
deleted file mode 100644 (file)
index 78cc611..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-cat %s >>./network/spoolout/uncnsrd
-Citadel Groupware
-0
-Gateway
-0