From: Art Cancro Date: Sat, 16 Oct 1999 03:53:46 +0000 (+0000) Subject: * Run netproc -i after a successful NUOP X-Git-Tag: v7.86~7502 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=93647da0c53b7df0bad4e8e76ce5bb086dcd220c * Run netproc -i after a successful NUOP --- diff --git a/citadel/file_ops.c b/citadel/file_ops.c index 6dfccb4e2..17bc5dcda 100644 --- a/citadel/file_ops.c +++ b/citadel/file_ops.c @@ -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 index 78cc6118e..000000000 --- a/citadel/network/systems/uncnsrd +++ /dev/null @@ -1,5 +0,0 @@ -cat %s >>./network/spoolout/uncnsrd -Citadel Groupware -0 -Gateway -0