aboutsummaryrefslogtreecommitdiff
path: root/src/interpreter.c
diff options
context:
space:
mode:
authorDominik Kaiser2024-10-25 13:44:13 +0200
committerDominik Kaiser2024-10-25 13:44:13 +0200
commit15d8385f8ecf30e1ca74025b12fed7e45349b706 (patch)
treee0a702ab4a3c72ea83ef5ea16ff87b96884b7102 /src/interpreter.c
parent07522e059d2956014b8d97f39b72a90c6dc6a7c6 (diff)
downloadminishell-15d8385f8ecf30e1ca74025b12fed7e45349b706.tar.gz
minishell-15d8385f8ecf30e1ca74025b12fed7e45349b706.zip
Handle all redirections except APPEND
TODO: Add APPEND handling TODO: Fix permissions
Diffstat (limited to 'src/interpreter.c')
-rw-r--r--src/interpreter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interpreter.c b/src/interpreter.c
index e08d289..458f2af 100644
--- a/src/interpreter.c
+++ b/src/interpreter.c
@@ -6,7 +6,7 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/05 13:15:24 by dkaiser #+# #+# */
-/* Updated: 2024/10/25 12:47:15 by dkaiser ### ########.fr */
+/* Updated: 2024/10/25 13:25:33 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -25,6 +25,8 @@ int eval(t_node *node, t_env *env)
pid_t pid;
int result;
+ if (node == NULL)
+ return (EXIT_FAILURE);
result = 0;
pid = fork();
if (pid < 0)