mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-12 22:30:12 +00:00
(exec_comm): Unset IFS so that subshells don't split fields.
This commit is contained in:
parent
6bb72f8ad4
commit
e6e0e176f2
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user