summaryrefslogtreecommitdiffstats
path: root/usr.bin/vacation
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-08-28 04:40:51 +0000
committerimp <imp@FreeBSD.org>1997-08-28 04:40:51 +0000
commitfafa82ed458b2bf5b02cb354a894aba75fe8dfd9 (patch)
tree2b7127e0e4adddd4a857663a4e2a0806a864b588 /usr.bin/vacation
parent4b9ff0e3e330572e6edca536d5be26d2bfb25741 (diff)
downloadFreeBSD-src-fafa82ed458b2bf5b02cb354a894aba75fe8dfd9.zip
FreeBSD-src-fafa82ed458b2bf5b02cb354a894aba75fe8dfd9.tar.gz
Stop parsing args before user supplied to argument in sendmail.
Submitted by: Oliver Friedrichs <oliver@silence.secnet.com>
Diffstat (limited to 'usr.bin/vacation')
-rw-r--r--usr.bin/vacation/vacation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vacation/vacation.c b/usr.bin/vacation/vacation.c
index 6cfdfc8..025a550 100644
--- a/usr.bin/vacation/vacation.c
+++ b/usr.bin/vacation/vacation.c
@@ -40,7 +40,7 @@ static char copyright[] =
#ifndef lint
static char sccsid[] = "From: @(#)vacation.c 8.2 (Berkeley) 1/26/94";
static char rcsid[] =
- "$Id: vacation.c,v 1.8 1997/04/23 22:36:51 ache Exp $";
+ "$Id: vacation.c,v 1.9 1997/04/23 22:40:19 ache Exp $";
#endif /* not lint */
/*
@@ -425,7 +425,7 @@ sendmessage(myname)
close(pvect[0]);
close(pvect[1]);
close(fileno(mfp));
- execl(_PATH_SENDMAIL, "sendmail", "-f", myname, from, NULL);
+ execl(_PATH_SENDMAIL, "sendmail", "-f", myname, "--", from, NULL);
syslog(LOG_ERR, "vacation: can't exec %s: %s",
_PATH_SENDMAIL, strerror(errno));
_exit(1);
OpenPOWER on IntegriCloud