diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-08-06 23:47:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-08-06 23:47:10 +0000 |
commit | f084ccf28af42d8c7d8733c6f2d42c7de1a0700a (patch) | |
tree | 06d4ad646b87ed54deeee8a20ebc3ddbad18c84a /usr.bin/vacation/vacation.c | |
parent | ad102259e12c348022abd6f89b959c64c3ea2bae (diff) |
use -- instead; eric
Diffstat (limited to 'usr.bin/vacation/vacation.c')
-rw-r--r-- | usr.bin/vacation/vacation.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/vacation/vacation.c b/usr.bin/vacation/vacation.c index 56764339f81..e8f2105bb88 100644 --- a/usr.bin/vacation/vacation.c +++ b/usr.bin/vacation/vacation.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vacation.c,v 1.7 1997/07/29 16:48:13 deraadt Exp $ */ +/* $OpenBSD: vacation.c,v 1.8 1997/08/06 23:47:09 deraadt 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.7 1997/07/29 16:48:13 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: vacation.c,v 1.8 1997/08/06 23:47:09 deraadt Exp $"; #endif /* not lint */ /* @@ -421,7 +421,8 @@ sendmessage(myname) close(pvect[0]); close(pvect[1]); fclose(mfp); - execl(_PATH_SENDMAIL, "sendmail", "-t", NULL); + execl(_PATH_SENDMAIL, "sendmail", "-f", myname, "--", + from, NULL); syslog(LOG_ERR, "vacation: can't exec %s: %s", _PATH_SENDMAIL, strerror(errno)); _exit(1); @@ -429,7 +430,6 @@ 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); |