summaryrefslogtreecommitdiff
path: root/usr.bin/vacation
diff options
context:
space:
mode:
authorbitblt <bitblt@cvs.openbsd.org>1997-07-29 02:08:41 +0000
committerbitblt <bitblt@cvs.openbsd.org>1997-07-29 02:08:41 +0000
commite15a7513a3382a84dbfa4bfcc4a3424b67af389a (patch)
tree4d770d6bb93e93b0d7cec2912fe9d28e3942058f /usr.bin/vacation
parentcae0532e89a066174d48ea4d595530a606f95fd5 (diff)
Theo really wanted a hole in Allman code. Now he's got one.
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);