Commit 8e08463c authored by abenoit's avatar abenoit
Browse files

unset path error rework

parent c110d42a
......@@ -85,6 +85,9 @@ static int launch_ext(char **args, t_xe *xe)
char **path;
ret = SUCCESS;
ret = get_var_pos(xe->env, "PATH", 4); // and with PATH unset?
if (ret == -1)
return (NO_SUCH_FILE);
tmp = get_var_value(xe->env, "PATH", 4); // and with PATH unset?
if (tmp == NULL)
return (M_ERROR);
......
......@@ -81,7 +81,7 @@ int ft_error(int ret, t_xe *xe)
if (ret >= SQUOTE_MISSING)// temp
return (parsing_error(ret - 9, xe));
else if (ret >= HOME_NOT_SET)
return (exec_error(ret - 7, xe));
return (exec_error(ret, xe));
else if (ret > CLEAN_EXIT)
err_output(ret);
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment