summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbeck <none@none>2006-03-23 19:39:03 -0800
committerjbeck <none@none>2006-03-23 19:39:03 -0800
commit4c0312813f96388b6ce9453c99f2db7d6a393bd4 (patch)
tree6131803f9c4c80521b3547e826753b2e79400517
parente4f35dba28613b963f69a8b719e2d15040fa804d (diff)
downloadillumos-joyent-4c0312813f96388b6ce9453c99f2db7d6a393bd4.tar.gz
6403183 vacation's clogged drain makes sendmail think a pipe is broken
-rw-r--r--usr/src/cmd/sendmail/aux/vacation.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/cmd/sendmail/aux/vacation.c b/usr/src/cmd/sendmail/aux/vacation.c
index 42b6b8dde6..70fe57130c 100644
--- a/usr/src/cmd/sendmail/aux/vacation.c
+++ b/usr/src/cmd/sendmail/aux/vacation.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
@@ -257,6 +257,8 @@ main(argc, argv)
/*NOTREACHED*/
}
}
+ while (fgets(buf, MAXLINE, stdin) != NULL)
+ continue; /* drain input */
return (EX_OK);
}