comments in endif

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@191 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1995-11-05 21:25:07 +00:00
parent f432c2b526
commit 9f1661eb7a
21 changed files with 45 additions and 45 deletions

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_dele.c 2.1 2.1 3/18/91"; static char SccsId[] = "@(#)@(#)pop_dele.c 2.1 2.1 3/18/91";
#endif not lint #endif /* not lint */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
@@ -45,7 +45,7 @@ POP * p;
if(p->debug) if(p->debug)
pop_log(p,POP_DEBUG,"Deleting message %u at offset %u of length %u\n", pop_log(p,POP_DEBUG,"Deleting message %u at offset %u of length %u\n",
mp->number,mp->offset,mp->length); mp->number,mp->offset,mp->length);
#endif DEBUG #endif /* DEBUG */
/* Update the messages_deleted and bytes_deleted counters */ /* Update the messages_deleted and bytes_deleted counters */
p->msgs_deleted++; p->msgs_deleted++;

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_dropcopy.c 2.6 2.6 4/3/91"; static char SccsId[] = "@(#)@(#)pop_dropcopy.c 2.6 2.6 4/3/91";
#endif not lint #endif /* not lint */
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
@@ -49,7 +49,7 @@ struct passwd * pwp;
if(p->debug) if(p->debug)
pop_log(p,POP_DEBUG,"Creating temporary maildrop '%s'", pop_log(p,POP_DEBUG,"Creating temporary maildrop '%s'",
p->temp_drop); p->temp_drop);
#endif DEBUG #endif /* DEBUG */
/* Here we work to make sure the user doesn't cause us to remove or /* Here we work to make sure the user doesn't cause us to remove or
* write over existing files by limiting how much work we do while * write over existing files by limiting how much work we do while
@@ -89,7 +89,7 @@ struct passwd * pwp;
} }
#ifdef DEBUG #ifdef DEBUG
if(p->debug)pop_log(p,POP_DEBUG,"uid = %d, gid = %d",getuid(),getgid()); if(p->debug)pop_log(p,POP_DEBUG,"uid = %d, gid = %d",getuid(),getgid());
#endif DEBUG #endif /* DEBUG */
/* Open for append, this solves the crash recovery problem */ /* Open for append, this solves the crash recovery problem */
if ((dfd = open(p->temp_drop,O_RDWR|O_APPEND|O_CREAT,0600)) == -1){ if ((dfd = open(p->temp_drop,O_RDWR|O_APPEND|O_CREAT,0600)) == -1){

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_dropinfo.c 2.1 2.1 3/18/91"; static char SccsId[] = "@(#)@(#)pop_dropinfo.c 2.1 2.1 3/18/91";
#endif not lint #endif /* not lint */
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
@@ -80,7 +80,7 @@ POP * p;
pop_log(p,POP_DEBUG, pop_log(p,POP_DEBUG,
"Msg %d at offset %d is %d octets long and has %u lines.", "Msg %d at offset %d is %d octets long and has %u lines.",
mp->number,mp->offset,mp->length,mp->lines); mp->number,mp->offset,mp->length,mp->lines);
#endif DEBUG #endif /* DEBUG */
++mp; ++mp;
mp->number = msg_num; mp->number = msg_num;
mp->length = 0; mp->length = 0;
@@ -91,7 +91,7 @@ POP * p;
#ifdef DEBUG #ifdef DEBUG
if(p->debug) if(p->debug)
pop_log(p,POP_DEBUG, "Msg %d being added to list", mp->number); pop_log(p,POP_DEBUG, "Msg %d being added to list", mp->number);
#endif DEBUG #endif /* DEBUG */
} }
mp->length += nchar; mp->length += nchar;
p->drop_size += nchar; p->drop_size += nchar;
@@ -107,7 +107,7 @@ POP * p;
"Msg %d at offset %d is %d octets long and has %u lines.", "Msg %d at offset %d is %d octets long and has %u lines.",
mp->number,mp->offset,mp->length,mp->lines); mp->number,mp->offset,mp->length,mp->lines);
} }
#endif DEBUG #endif /* DEBUG */
return(POP_SUCCESS); return(POP_SUCCESS);
} }

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_get_command.c 2.1 2.1 3/18/91"; static char SccsId[] = "@(#)@(#)pop_get_command.c 2.1 2.1 3/18/91";
#endif not lint #endif /* not lint */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
@@ -23,7 +23,7 @@ static state_table states[] = {
auth2, "pass", 1, 1, pop_pass, {auth1, trans}, auth2, "pass", 1, 1, pop_pass, {auth1, trans},
#ifdef RPOP #ifdef RPOP
auth2, "rpop", 1, 1, pop_rpop, {auth1, trans}, auth2, "rpop", 1, 1, pop_rpop, {auth1, trans},
#endif RPOP #endif /* RPOP */
auth1, "quit", 0, 0, pop_quit, {halt, halt}, auth1, "quit", 0, 0, pop_quit, {halt, halt},
auth2, "quit", 0, 0, pop_quit, {halt, halt}, auth2, "quit", 0, 0, pop_quit, {halt, halt},
trans, "stat", 0, 0, pop_stat, {trans, trans}, trans, "stat", 0, 0, pop_stat, {trans, trans},
@@ -50,7 +50,7 @@ register char * mp; /* Pointer to unparsed line
/* Save a copy of the original client line */ /* Save a copy of the original client line */
#ifdef DEBUG #ifdef DEBUG
if(p->debug) strcpy (buf,mp); if(p->debug) strcpy (buf,mp);
#endif DEBUG #endif /* DEBUG */
/* Parse the message into the parameter array */ /* Parse the message into the parameter array */
if ((p->parm_count = pop_parse(p,mp)) < 0) return(NULL); if ((p->parm_count = pop_parse(p,mp)) < 0) return(NULL);
@@ -66,7 +66,7 @@ register char * mp; /* Pointer to unparsed line
pop_log(p,POP_DEBUG,"Received: \"%s\"",buf); pop_log(p,POP_DEBUG,"Received: \"%s\"",buf);
} }
} }
#endif DEBUG #endif /* DEBUG */
/* Search for the POP command in the command/state table */ /* Search for the POP command in the command/state table */
for (s = states; s->command; s++) { for (s = states; s->command; s++) {

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_get_subcommand.c 2.1 2.1 3/18/91"; static char SccsId[] = "@(#)@(#)pop_get_subcommand.c 2.1 2.1 3/18/91";
#endif not lint #endif /* not lint */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_init.c 2.1 2.1 3/18/91"; static char SccsId[] = "@(#)@(#)pop_init.c 2.1 2.1 3/18/91";
#endif not lint #endif /* not lint */
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
@@ -160,7 +160,7 @@ char ** argmessage;
p->client = p->ipaddr; p->client = p->ipaddr;
} }
} }
#endif BIND43 #endif /* BIND43 */
} }
/* Create input file stream for TCP/IP communication */ /* Create input file stream for TCP/IP communication */
@@ -188,7 +188,7 @@ char ** argmessage;
trace_file_name); trace_file_name);
else if (p->debug) else if (p->debug)
pop_log(p,POP_PRIORITY,"Debugging turned on"); pop_log(p,POP_PRIORITY,"Debugging turned on");
#endif DEBUG #endif /* DEBUG */
return(authenticate(p, &cs)); return(authenticate(p, &cs));
} }

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_last.c 2.1 2.1 3/18/91"; static char SccsId[] = "@(#)@(#)pop_last.c 2.1 2.1 3/18/91";
#endif not lint #endif /* not lint */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_list.c 2.1 2.1 3/18/91"; static char SccsId[] = "@(#)@(#)pop_list.c 2.1 2.1 3/18/91";
#endif not lint #endif /* not lint */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_log.c 2.1 2.1 3/18/91"; static char SccsId[] = "@(#)@(#)pop_log.c 2.1 2.1 3/18/91";
#endif not lint #endif /* not lint */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_lower.c 2.1 2.1 3/18/91"; static char SccsId[] = "@(#)@(#)pop_lower.c 2.1 2.1 3/18/91";
#endif not lint #endif /* not lint */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_msg.c 2.1 2.1 3/18/91"; static char SccsId[] = "@(#)@(#)pop_msg.c 2.1 2.1 3/18/91";
#endif not lint #endif /* not lint */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
@@ -79,7 +79,7 @@ va_dcl
#ifdef DEBUG #ifdef DEBUG
if (p->debug && stat == POP_SUCCESS) if (p->debug && stat == POP_SUCCESS)
pop_log(p,POP_DEBUG,"%s",message); pop_log(p,POP_DEBUG,"%s",message);
#endif DEBUG #endif /* DEBUG */
/* Log the message if a failure occurred */ /* Log the message if a failure occurred */
if (stat != POP_SUCCESS) if (stat != POP_SUCCESS)

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_parse.c 2.1 2.1 3/18/91"; static char SccsId[] = "@(#)@(#)pop_parse.c 2.1 2.1 3/18/91";
#endif not lint #endif /* not lint */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_pass.c 2.3 2.3 4/2/91"; static char SccsId[] = "@(#)@(#)pop_pass.c 2.3 2.3 4/2/91";
#endif not lint #endif /* not lint */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_quit.c 2.1 2.1 3/18/91"; static char SccsId[] = "@(#)@(#)pop_quit.c 2.1 2.1 3/18/91";
#endif not lint #endif /* not lint */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_rset.c 2.1 2.1 3/18/91"; static char SccsId[] = "@(#)@(#)pop_rset.c 2.1 2.1 3/18/91";
#endif not lint #endif /* not lint */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_send.c 2.1 2.1 3/18/91"; static char SccsId[] = "@(#)@(#)pop_send.c 2.1 2.1 3/18/91";
#endif not lint #endif /* not lint */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
@@ -143,7 +143,7 @@ char * buffer;
#ifdef DEBUG #ifdef DEBUG
if(p->debug)pop_log(p,POP_DEBUG,"Sending line \"%s\"",buffer); if(p->debug)pop_log(p,POP_DEBUG,"Sending line \"%s\"",buffer);
#endif DEBUG #endif /* DEBUG */
/* Put a <CR><NL> if a newline was removed from the buffer */ /* Put a <CR><NL> if a newline was removed from the buffer */
if (bp) (void)fputs ("\r\n",p->output); if (bp) (void)fputs ("\r\n",p->output);

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_stat.c 2.2 2.2 3/18/91"; static char SccsId[] = "@(#)@(#)pop_stat.c 2.2 2.2 3/18/91";
#endif not lint #endif /* not lint */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
@@ -22,7 +22,7 @@ POP * p;
{ {
#ifdef DEBUG #ifdef DEBUG
if (p->debug) pop_log(p,POP_DEBUG,"%d message(s) (%d octets).",p->msg_count-p->msgs_deleted,p->drop_size-p->bytes_deleted); if (p->debug) pop_log(p,POP_DEBUG,"%d message(s) (%d octets).",p->msg_count-p->msgs_deleted,p->drop_size-p->bytes_deleted);
#endif DEBUG #endif /* DEBUG */
return (pop_msg (p,POP_SUCCESS, return (pop_msg (p,POP_SUCCESS,
"%u %u",p->msg_count-p->msgs_deleted,p->drop_size-p->bytes_deleted)); "%u %u",p->msg_count-p->msgs_deleted,p->drop_size-p->bytes_deleted));
} }

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_updt.c 2.3 2.3 3/20/91"; static char SccsId[] = "@(#)@(#)pop_updt.c 2.3 2.3 3/20/91";
#endif not lint #endif /* not lint */
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
@@ -52,7 +52,7 @@ POP * p;
pop_log(p,POP_DEBUG,"Performing maildrop update..."); pop_log(p,POP_DEBUG,"Performing maildrop update...");
pop_log(p,POP_DEBUG,"Checking to see if all messages were deleted"); pop_log(p,POP_DEBUG,"Checking to see if all messages were deleted");
} }
#endif DEBUG #endif /* DEBUG */
if (p->msgs_deleted == p->msg_count) { if (p->msgs_deleted == p->msg_count) {
/* Truncate before close, to avoid race condition, DO NOT UNLINK! /* Truncate before close, to avoid race condition, DO NOT UNLINK!
@@ -65,7 +65,7 @@ POP * p;
#ifdef DEBUG #ifdef DEBUG
if (p->debug) if (p->debug)
pop_log(p,POP_DEBUG,"Opening mail drop \"%s\"",p->drop_name); pop_log(p,POP_DEBUG,"Opening mail drop \"%s\"",p->drop_name);
#endif DEBUG #endif /* DEBUG */
/* Open the user's real maildrop */ /* Open the user's real maildrop */
if ((mfd = open(p->drop_name,O_RDWR|O_CREAT,0600)) == -1 || if ((mfd = open(p->drop_name,O_RDWR|O_CREAT,0600)) == -1 ||
@@ -110,7 +110,7 @@ POP * p;
if (p->debug) if (p->debug)
pop_log(p,POP_DEBUG,"Creating new maildrop \"%s\" from \"%s\"", pop_log(p,POP_DEBUG,"Creating new maildrop \"%s\" from \"%s\"",
p->drop_name,p->temp_drop); p->drop_name,p->temp_drop);
#endif DEBUG #endif /* DEBUG */
for (msg_num = 0; msg_num < p->msg_count; ++msg_num) { for (msg_num = 0; msg_num < p->msg_count; ++msg_num) {
@@ -124,7 +124,7 @@ POP * p;
if(p->debug) if(p->debug)
pop_log(p,POP_DEBUG, pop_log(p,POP_DEBUG,
"Message %d flagged for deletion.",mp->number); "Message %d flagged for deletion.",mp->number);
#endif DEBUG #endif /* DEBUG */
continue; continue;
} }
@@ -133,7 +133,7 @@ POP * p;
#ifdef DEBUG #ifdef DEBUG
if(p->debug) if(p->debug)
pop_log(p,POP_DEBUG,"Copying message %d.",mp->number); pop_log(p,POP_DEBUG,"Copying message %d.",mp->number);
#endif DEBUG #endif /* DEBUG */
for(status_written = doing_body = 0 ; for(status_written = doing_body = 0 ;
fgets(buffer,MAXMSGLINELEN,p->drop);) { fgets(buffer,MAXMSGLINELEN,p->drop);) {

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_user.c 2.1 2.1 3/18/91"; static char SccsId[] = "@(#)@(#)pop_user.c 2.1 2.1 3/18/91";
#endif not lint #endif /* not lint */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_xmit.c 2.1 2.1 3/18/91"; static char SccsId[] = "@(#)@(#)pop_xmit.c 2.1 2.1 3/18/91";
#endif not lint #endif /* not lint */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
@@ -43,7 +43,7 @@ POP * p;
pop_log(p,POP_DEBUG, pop_log(p,POP_DEBUG,
"Creating temporary file for sending a mail message \"%s\"\n", "Creating temporary file for sending a mail message \"%s\"\n",
temp_xmit); temp_xmit);
#endif DEBUG #endif /* DEBUG */
if ((tmp = fopen(temp_xmit,"w+")) == NULL) if ((tmp = fopen(temp_xmit,"w+")) == NULL)
return (pop_msg(p,POP_FAILURE, return (pop_msg(p,POP_FAILURE,
"Unable to create temporary message file \"%s\", errno = %d", "Unable to create temporary message file \"%s\", errno = %d",
@@ -55,12 +55,12 @@ POP * p;
/* Receive the message */ /* Receive the message */
#ifdef DEBUG #ifdef DEBUG
if(p->debug)pop_log(p,POP_DEBUG,"Receiving mail message"); if(p->debug)pop_log(p,POP_DEBUG,"Receiving mail message");
#endif DEBUG #endif /* DEBUG */
while (fgets(buffer,MAXLINELEN,p->input)){ while (fgets(buffer,MAXLINELEN,p->input)){
/* Look for initial period */ /* Look for initial period */
#ifdef DEBUG #ifdef DEBUG
if(p->debug)pop_log(p,POP_DEBUG,"Receiving: \"%s\"",buffer); if(p->debug)pop_log(p,POP_DEBUG,"Receiving: \"%s\"",buffer);
#endif DEBUG #endif /* DEBUG */
if (*buffer == '.') { if (*buffer == '.') {
/* Exit on end of message */ /* Exit on end of message */
if (strcmp(buffer,".\r\n") == 0) break; if (strcmp(buffer,".\r\n") == 0) break;
@@ -71,7 +71,7 @@ POP * p;
#ifdef DEBUG #ifdef DEBUG
if(p->debug)pop_log(p,POP_DEBUG,"Forking for \"%s\"",MAIL_COMMAND); if(p->debug)pop_log(p,POP_DEBUG,"Forking for \"%s\"",MAIL_COMMAND);
#endif DEBUG #endif /* DEBUG */
/* Send the message */ /* Send the message */
switch (pid = fork()) { switch (pid = fork()) {
case 0: case 0:
@@ -84,7 +84,7 @@ POP * p;
case -1: case -1:
#ifdef DEBUG #ifdef DEBUG
if (!p->debug) (void)unlink (temp_xmit); if (!p->debug) (void)unlink (temp_xmit);
#endif DEBUG #endif /* DEBUG */
return (pop_msg(p,POP_FAILURE, return (pop_msg(p,POP_FAILURE,
"Unable to execute \"%s\"",MAIL_COMMAND)); "Unable to execute \"%s\"",MAIL_COMMAND));
default: default:

View File

@@ -7,7 +7,7 @@
#ifndef lint #ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)@(#)pop_xtnd.c 2.1 2.1 3/18/91"; static char SccsId[] = "@(#)@(#)pop_xtnd.c 2.1 2.1 3/18/91";
#endif not lint #endif /* not lint */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>