can't use fclose() in vforked() child this way. Fixes PR 5582.
This commit is contained in:
parent
9c326571d3
commit
0e1f4daac8
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vacation.c,v 1.13 1998/02/07 07:06:24 mikel Exp $ */
|
||||
/* $NetBSD: vacation.c,v 1.14 1998/07/08 00:34:53 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1987, 1993
|
||||
@ -44,7 +44,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1987, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)vacation.c 8.2 (Berkeley) 1/26/94";
|
||||
#endif
|
||||
__RCSID("$NetBSD: vacation.c,v 1.13 1998/02/07 07:06:24 mikel Exp $");
|
||||
__RCSID("$NetBSD: vacation.c,v 1.14 1998/07/08 00:34:53 cgd Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -425,7 +425,7 @@ sendmessage(myname)
|
||||
dup2(pvect[0], 0);
|
||||
close(pvect[0]);
|
||||
close(pvect[1]);
|
||||
fclose(mfp);
|
||||
close(fileno(mfp));
|
||||
execl(_PATH_SENDMAIL, "sendmail", "-f", myname, "--", from,
|
||||
NULL);
|
||||
syslog(LOG_ERR, "vacation: can't exec %s: %m",
|
||||
|
Loading…
Reference in New Issue
Block a user