fix: corrected the not compilation on the private spawn cmd
This commit is contained in:
parent
678587d481
commit
9fc0bc4a1f
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/09/14 12:30:09 by maiboyer #+# #+# */
|
/* Created: 2024/09/14 12:30:09 by maiboyer #+# #+# */
|
||||||
/* Updated: 2024/09/16 18:22:10 by maiboyer ### ########.fr */
|
/* Updated: 2024/09/17 21:41:55 by rparodi ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -118,7 +118,6 @@ t_error _redirection_fd(\
|
||||||
t_spawn_info *info, t_state *state, t_ast_node red)
|
t_spawn_info *info, t_state *state, t_ast_node red)
|
||||||
{
|
{
|
||||||
t_vec_str fname;
|
t_vec_str fname;
|
||||||
t_fd *red_fd;
|
|
||||||
|
|
||||||
fname = vec_str_new(16, str_free);
|
fname = vec_str_new(16, str_free);
|
||||||
if (_redir_input(info, state, &fname, red))
|
if (_redir_input(info, state, &fname, red))
|
||||||
|
|
@ -143,6 +142,7 @@ t_error _redirection_heredoc(\
|
||||||
{
|
{
|
||||||
t_pipe heredoc_pipe;
|
t_pipe heredoc_pipe;
|
||||||
|
|
||||||
|
(void)state;
|
||||||
if (red->data.heredoc_redirection.op == AST_REDIR_HEREDOC)
|
if (red->data.heredoc_redirection.op == AST_REDIR_HEREDOC)
|
||||||
{
|
{
|
||||||
(void)((info->stdout.tag == R_FD) && (close_fd(info->stdout.fd.fd), 1));
|
(void)((info->stdout.tag == R_FD) && (close_fd(info->stdout.fd.fd), 1));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue