wrong with it. Replaced with unbuffer_output() which does work.
$Log$
+ Revision 625.20 2004/09/11 03:13:04 error
+ * Remove calls to the broken flush_output() while I try to figure out what's
+ wrong with it. Replaced with unbuffer_output() which does work.
+
Revision 625.19 2004/09/10 02:54:26 ajc
* Added flush_output() calls to IMAP modules. (Do we need them? Are we
buffering IMAP output? Should we?)
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
char *dirs[2];
int a;
+ unbuffer_output();
+
if (CtdlAccessCheck(ac_aide)) return;
extract(buf,mname,0);
return;
}
cprintf("%d %s\n", SEND_LISTING, targ);
- flush_output();
while (client_gets(buf), strcmp(buf, "000")) {
fprintf(mfp, "%s\n", buf);
}
else if (!strcasecmp(cmd, "SET")) {
+ unbuffer_output();
cprintf("%d Send configuration...\n", SEND_LISTING);
- flush_output();
a = 0;
while (client_gets(buf), strcmp(buf, "000")) {
switch (a) {
else if (!strcasecmp(cmd, "PUTSYS")) {
extract(confname, argbuf, 1);
+ unbuffer_output();
cprintf("%d %s\n", SEND_LISTING, confname);
- flush_output();
confptr = CtdlReadMessageBody("000",
config.c_maxmsglen, NULL, 0);
CtdlPutSysConfig(confname, confptr);
char infofilename[SIZ];
char buf[SIZ];
+ unbuffer_output();
+
if (CtdlAccessCheck(ac_room_aide)) return;
if (atoi(ok) == 0) {
return;
}
cprintf("%d Send info...\n", SEND_LISTING);
- flush_output();
do {
client_gets(buf);
char buf[SIZ];
FILE *fp;
+ unbuffer_output();
+
if (!(CC->logged_in)) {
cprintf("%d Not logged in.\n",ERROR + NOT_LOGGED_IN);
return;
return;
}
cprintf("%d \n",SEND_LISTING);
- flush_output();
while(client_gets(buf), strcmp(buf,"000")) {
if (ftell(fp) < config.c_maxmsglen) {
fprintf(fp,"%s\n",buf);
ERROR + RESOURCE_NOT_OPEN, x_user);
return;
}
+ unbuffer_output();
cprintf("%d Transmit message (will deliver to %d users)\n",
SEND_LISTING, message_sent);
- flush_output();
x_big_msgbuf = malloc(SIZ);
memset(x_big_msgbuf, 0, SIZ);
while (client_gets(x_msg), strcmp(x_msg, "000")) {
char buf[SIZ];
FILE *fp;
+ unbuffer_output();
+
if (CtdlAccessCheck(ac_room_aide)) return;
safestrncpy(tempfilename, tmpnam(NULL), sizeof tempfilename);
assoc_file_name(filename, sizeof filename, &CC->room, "netconfigs");
}
cprintf("%d %s\n", SEND_LISTING, tempfilename);
- flush_output();
while (client_gets(buf), strcmp(buf, "000")) {
fprintf(fp, "%s\n", buf);
}
char s_version[SIZ];
int version;
+ unbuffer_output();
+
cprintf("%d sock it to me\n", SEND_LISTING);
- flush_output();
while (client_gets(buf), strcmp(buf, "000")) {
lprintf(CTDL_DEBUG, "import keyword: <%s>\n", buf);
char tmpaddress[SIZ];
char tmpcountry[SIZ];
+ unbuffer_output();
+
if (!(CC->logged_in)) {
cprintf("%d Not logged in.\n",ERROR + NOT_LOGGED_IN);
return;
strcpy(tmpcountry, "USA");
cprintf("%d Send registration...\n", SEND_LISTING);
- flush_output();
a=0;
while (client_gets(buf), strcmp(buf,"000")) {
if (a==0) vcard_set_prop(my_vcard, "n", buf, 0);