fixed file execution error handling

This commit is contained in:
mdev9
2024-03-06 10:21:23 +01:00
parent 4df96de4a3
commit d9b819165e
3 changed files with 48 additions and 17 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/04 17:31:38 by tomoron #+# #+# */
/* Updated: 2024/03/05 19:05:34 by marde-vr ### ########.fr */
/* Updated: 2024/03/06 10:19:27 by marde-vr ### ########.fr */
/* */
/* ************************************************************************** */
@ -20,6 +20,7 @@
# include <sys/wait.h>
# include "../libft/libft.h"
# include "fcntl.h"
# include <sys/stat.h>
typedef enum e_token_type
{
@ -115,5 +116,6 @@ int get_cmd_count(t_cmd *cmds);
int get_args_count(t_cmd *cmds);
char **get_cmd_args(t_msh *msh);
void remove_command_from_msh(t_msh *msh);
int file_access(t_msh *msh, int *found);
#endif