summaryrefslogtreecommitdiff
path: root/usr.bin/vacation
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/vacation')
-rw-r--r--usr.bin/vacation/vacation.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/vacation/vacation.c b/usr.bin/vacation/vacation.c
index e9ccc2a6063..fe5efe8daea 100644
--- a/usr.bin/vacation/vacation.c
+++ b/usr.bin/vacation/vacation.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vacation.c,v 1.5 1997/01/17 07:13:48 millert Exp $ */
+/* $OpenBSD: vacation.c,v 1.6 1997/07/29 02:08:40 bitblt Exp $ */
/* $NetBSD: vacation.c,v 1.7 1995/04/29 05:58:27 cgd Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)vacation.c 8.2 (Berkeley) 1/26/94";
#endif
-static char rcsid[] = "$OpenBSD: vacation.c,v 1.5 1997/01/17 07:13:48 millert Exp $";
+static char rcsid[] = "$OpenBSD: vacation.c,v 1.6 1997/07/29 02:08:40 bitblt Exp $";
#endif /* not lint */
/*
@@ -421,7 +421,7 @@ sendmessage(myname)
close(pvect[0]);
close(pvect[1]);
fclose(mfp);
- execl(_PATH_SENDMAIL, "sendmail", "-f", myname, from, NULL);
+ execl(_PATH_SENDMAIL, "sendmail", "-t", NULL);
syslog(LOG_ERR, "vacation: can't exec %s: %s",
_PATH_SENDMAIL, strerror(errno));
_exit(1);
@@ -429,6 +429,7 @@ sendmessage(myname)
close(pvect[0]);
sfp = fdopen(pvect[1], "w");
fprintf(sfp, "To: %s\n", from);
+ fprintf(sfp, "From: %s\n, myname);
while (fgets(buf, sizeof buf, mfp))
fputs(buf, sfp);
fclose(mfp);