summaryrefslogtreecommitdiffstats
path: root/src/ft_exec.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p6.le-101.fr>2019-11-01 19:21:05 +0100
committerRudy Bousset <rbousset@z2r5p6.le-101.fr>2019-11-01 19:21:05 +0100
commitff9af4e1906baec74d1ddddb90ef7b72c2262e62 (patch)
treef2ca8aa58c0c5de9001f9156f55a29e45a7b62af /src/ft_exec.c
parentcommit (diff)
download42-minishell-ff9af4e1906baec74d1ddddb90ef7b72c2262e62.tar.gz
42-minishell-ff9af4e1906baec74d1ddddb90ef7b72c2262e62.tar.bz2
42-minishell-ff9af4e1906baec74d1ddddb90ef7b72c2262e62.tar.xz
42-minishell-ff9af4e1906baec74d1ddddb90ef7b72c2262e62.tar.zst
42-minishell-ff9af4e1906baec74d1ddddb90ef7b72c2262e62.zip
last commit for a long, long time
Diffstat (limited to 'src/ft_exec.c')
-rw-r--r--src/ft_exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_exec.c b/src/ft_exec.c
index dffaf3d..555be96 100644
--- a/src/ft_exec.c
+++ b/src/ft_exec.c
@@ -29,7 +29,7 @@ ft_exec(char **com)
return (ft_error(com[0], 127));
}
else
- if ((execve(com[0] + 2, com, NULL)) != 0)
+ if ((execve(com[0], com, NULL)) != 0)
return (ft_error(com[0], 127));
return (0);
}