Stop parsing args before user supplied to argument in sendmail.
Submitted by: Oliver Friedrichs <oliver@silence.secnet.com>
This commit is contained in:
parent
1b0b864911
commit
bd29c5f39b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28850
@ -40,7 +40,7 @@ static char copyright[] =
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char sccsid[] = "From: @(#)vacation.c 8.2 (Berkeley) 1/26/94";
|
static char sccsid[] = "From: @(#)vacation.c 8.2 (Berkeley) 1/26/94";
|
||||||
static char rcsid[] =
|
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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -425,7 +425,7 @@ sendmessage(myname)
|
|||||||
close(pvect[0]);
|
close(pvect[0]);
|
||||||
close(pvect[1]);
|
close(pvect[1]);
|
||||||
close(fileno(mfp));
|
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",
|
syslog(LOG_ERR, "vacation: can't exec %s: %s",
|
||||||
_PATH_SENDMAIL, strerror(errno));
|
_PATH_SENDMAIL, strerror(errno));
|
||||||
_exit(1);
|
_exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user