diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-22 16:54:32 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-22 16:54:32 +0200 |
commit | 7d373f7cebe2c241ee9a5a946618c0ce3d902907 (patch) | |
tree | d555c783b5c485194f4b314ea6d00494c5d04b82 | |
parent | TODO update (diff) | |
download | 42-minishell-7d373f7cebe2c241ee9a5a946618c0ce3d902907.tar.gz 42-minishell-7d373f7cebe2c241ee9a5a946618c0ce3d902907.tar.bz2 42-minishell-7d373f7cebe2c241ee9a5a946618c0ce3d902907.tar.xz 42-minishell-7d373f7cebe2c241ee9a5a946618c0ce3d902907.tar.zst 42-minishell-7d373f7cebe2c241ee9a5a946618c0ce3d902907.zip |
In progress + norme
-rw-r--r-- | src/p_lblock.c | 2 | ||||
-rw-r--r-- | src/s_lredir.c | 1 | ||||
-rw-r--r-- | src/s_struct.h | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/src/p_lblock.c b/src/p_lblock.c index 82d1b44..e147a9f 100644 --- a/src/p_lblock.c +++ b/src/p_lblock.c @@ -42,7 +42,7 @@ static uint8_t p_get_nextif(char *words[], size_t i) return (nextif); } -t_bool p_find_good_pipe(const char word[]) +t_bool p_find_good_pipe(const char word[]) { char *ptr; t_quote_mode mode; diff --git a/src/s_lredir.c b/src/s_lredir.c index 14ca0ae..0457434 100644 --- a/src/s_lredir.c +++ b/src/s_lredir.c @@ -71,6 +71,7 @@ struct s_lredir *s_lredir_new(const char path[], int32_t fd, int8_t redir) if ((rdr = (struct s_lredir*)malloc(sizeof(struct s_lredir))) == NULL) return (NULL); rdr->fd = fd; + rdr->right_fd = -1; rdr->redir = redir; rdr->next = NULL; ft_strlcpy(rdr->path, path, PATH_MAX); diff --git a/src/s_struct.h b/src/s_struct.h index e6e266a..03efbda 100644 --- a/src/s_struct.h +++ b/src/s_struct.h @@ -53,6 +53,7 @@ typedef struct s_lredir char path[PATH_MAX]; char *heredoc; int32_t fd; + int32_t right_fd; int8_t redir; struct s_lredir *next; } t_lredir; |