SCCS-vsn: libexec/mail.local/mail.local.c 5.11
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)mail.local.c 5.10 (Berkeley) %G%";
+static char sccsid[] = "@(#)mail.local.c 5.11 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
- openlog("mail.local", LOG_PERROR, LOG_MAIL);
+ openlog("mail.local", 0, LOG_MAIL);
from = NULL;
while ((ch = getopt(argc, argv, "df:r:")) != EOF)
from = NULL;
while ((ch = getopt(argc, argv, "df:r:")) != EOF)
#else
va_start(ap);
#endif
#else
va_start(ap);
#endif
+ /*
+ * Don't use LOG_PERROR as an openlog() flag to do this, it's
+ * not portable enough.
+ */
(void)vfprintf(stderr, fmt, ap);
(void)vfprintf(stderr, fmt, ap);
+ (void)fprintf(stderr, "\n");
vsyslog(LOG_ERR, fmt, ap);
va_end(ap);
if (isfatal)
vsyslog(LOG_ERR, fmt, ap);
va_end(ap);
if (isfatal)