diff options
Diffstat (limited to '')
-rw-r--r-- | src/m_mshrc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/m_mshrc.c b/src/m_mshrc.c index 7f6b8b9..5b1277e 100644 --- a/src/m_mshrc.c +++ b/src/m_mshrc.c @@ -22,8 +22,7 @@ #include "m_loop.h" #include "u_vars.h" -uint8_t - m_source_mshrc(t_msh *msh) +uint8_t m_source_mshrc(t_msh *msh) { char file[PATH_MAX]; char home[PATH_MAX]; @@ -34,7 +33,7 @@ uint8_t ft_sprintf(file, "%s/%s", home, FT_MINISHELLRC); if ((fd = open(file, O_RDONLY)) < 0) return (0); + msh->fd = fd; ret = m_loop(fd, msh); - close(fd); return (ret); } |