summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ab7d292)
SCCS-vsn: usr.sbin/sendmail/src/savemail.c 6.33
SCCS-vsn: usr.sbin/sendmail/src/queue.c 6.48
#ifndef lint
#ifdef QUEUE
#ifndef lint
#ifdef QUEUE
-static char sccsid[] = "@(#)queue.c 6.47 (Berkeley) %G% (with queueing)";
+static char sccsid[] = "@(#)queue.c 6.48 (Berkeley) %G% (with queueing)";
-static char sccsid[] = "@(#)queue.c 6.47 (Berkeley) %G% (without queueing)";
+static char sccsid[] = "@(#)queue.c 6.48 (Berkeley) %G% (without queueing)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
+ if (st.st_size == 0)
+ {
+ /* must be a bogus file -- just remove it */
+ (void) unlink(qf);
+ fclose(qfp);
+ return FALSE;
+ }
+
/* save this lock */
e->e_lockfp = qfp;
/* save this lock */
e->e_lockfp = qfp;
-static char sccsid[] = "@(#)savemail.c 6.32 (Berkeley) %G%";
+static char sccsid[] = "@(#)savemail.c 6.33 (Berkeley) %G%";
#endif /* not lint */
# include <pwd.h>
#endif /* not lint */
# include <pwd.h>
- printf("\nsavemail, errormode = %c\n e_from=", e->e_errormode);
+ printf("\nsavemail, errormode = %c, id = %s\n e_from=",
+ e->e_errormode, e->e_id == NULL ? "NONE" : e->e_id);
printaddr(&e->e_from, FALSE);
}
printaddr(&e->e_from, FALSE);
}
+ if (e->e_id == NULL)
+ {
+ /* can't return a message with no id */
+ return;
+ }
+
e->e_flags &= ~EF_FATALERRS;
/*
e->e_flags &= ~EF_FATALERRS;
/*