diff --git a/usr.bin/vacation/vacation.c b/usr.bin/vacation/vacation.c index 4c33ea9c2d7d..320dbb3e685c 100644 --- a/usr.bin/vacation/vacation.c +++ b/usr.bin/vacation/vacation.c @@ -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",