aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/rdist/docmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/rdist/docmd.c')
-rw-r--r--usr.bin/rdist/docmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/rdist/docmd.c b/usr.bin/rdist/docmd.c
index b99d12609f83..e73c1b7afc17 100644
--- a/usr.bin/rdist/docmd.c
+++ b/usr.bin/rdist/docmd.c
@@ -36,6 +36,7 @@ static char sccsid[] = "@(#)docmd.c 5.8 (Berkeley) 3/1/91";
#endif /* not lint */
#include "defs.h"
+#include <stdlib.h>
#include <setjmp.h>
#include <netdb.h>
@@ -506,6 +507,7 @@ notify(file, rhost, to, lmod)
* Create a pipe to mailling program.
*/
(void)sprintf(buf, "%s -oi -t", _PATH_SENDMAIL);
+ unsetenv("IFS");
pf = popen(buf, "w");
if (pf == NULL) {
error("notify: \"%s\" failed\n", _PATH_SENDMAIL);