[ADD] execute './'

This commit is contained in:
joris schaft 2024-06-07 11:51:08 +02:00
parent 44daaaf097
commit 75156fd3ee

View file

@ -6,7 +6,7 @@
/* By: jschaft <cecile.schaft@orange.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/16 12:07:26 by jschaft #+# #+# */
/* Updated: 2024/05/01 17:53:38 by mcolonna ### ########.fr */
/* Updated: 2024/06/07 11:40:04 by jschaft ### ########.fr */
/* */
/* ************************************************************************** */
@ -34,6 +34,11 @@ const char *search_path(
const char *r;
i = 0;
if (access(prog, X_OK) >= 0)
{
mem_free((void *)prog2);
return (ft_strdup(prog));
}
while (path[i] != NULL)
{
r = str_join(fatal_error, mc, path[i], prog2);