fixed exec error and normed
This commit is contained in:
4
debug.c
4
debug.c
@ -3,10 +3,10 @@
|
||||
/* ::: :::::::: */
|
||||
/* debug.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/02/15 14:16:47 by tomoron #+# #+# */
|
||||
/* Updated: 2024/02/15 14:45:29 by tomoron ### ########.fr */
|
||||
/* Updated: 2024/02/16 15:08:40 by marde-vr ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
@ -3,10 +3,10 @@
|
||||
/* ::: :::::::: */
|
||||
/* env_to_char_tab.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/02/16 13:30:18 by tomoron #+# #+# */
|
||||
/* Updated: 2024/02/16 14:31:07 by tomoron ### ########.fr */
|
||||
/* Updated: 2024/02/16 15:08:53 by marde-vr ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
4
exec.c
4
exec.c
@ -6,7 +6,7 @@
|
||||
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/02/07 14:12:49 by tomoron #+# #+# */
|
||||
/* Updated: 2024/02/16 14:41:43 by marde-vr ### ########.fr */
|
||||
/* Updated: 2024/02/16 15:10:43 by marde-vr ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -112,7 +112,7 @@ void get_cmd_path(t_cmd *cmd, t_env *env)
|
||||
int found;
|
||||
|
||||
found = 0;
|
||||
if (access(cmd->token, X_OK != -1))
|
||||
if (access(cmd->token, X_OK) != -1)
|
||||
found = 1;
|
||||
else
|
||||
{
|
||||
|
@ -3,10 +3,10 @@
|
||||
/* ::: :::::::: */
|
||||
/* ft_strisnbr.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/02/11 17:14:58 by tomoron #+# #+# */
|
||||
/* Updated: 2024/02/12 03:21:56 by tomoron ### ########.fr */
|
||||
/* Updated: 2024/02/16 15:07:30 by marde-vr ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/02/09 15:26:01 by tomoron #+# #+# */
|
||||
/* Updated: 2024/02/16 14:52:11 by tomoron ### ########.fr */
|
||||
/* Updated: 2024/02/16 15:09:25 by marde-vr ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
#include "minishell.h"
|
||||
|
Reference in New Issue
Block a user