(exec_comm): Unset IFS so that subshells don't split fields.

This commit is contained in:
Ulrich Drepper 1999-07-07 11:58:14 +00:00
parent 6bb72f8ad4
commit e6e0e176f2

View File

@ -859,6 +859,9 @@ exec_comm (char *comm, char **word, size_t *word_length, size_t *max_length,
}
}
/* Make sure the subshell doesn't field-split on our behalf. */
unsetenv ("IFS");
__close (fildes[0]);
__execve (_PATH_BSHELL, (char *const *) args, __environ);