fixed exec error and normed

This commit is contained in:
mdev9
2024-02-16 15:11:20 +01:00
parent 9d15c79d02
commit c3aefd859b
5 changed files with 41 additions and 41 deletions

View File

@ -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 */
/* */
/* ************************************************************************** */

View File

@ -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
View File

@ -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
{

View File

@ -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 */
/* */
/* ************************************************************************** */

View File

@ -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"