aboutsummaryrefslogtreecommitdiff
path: root/src/interpreter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interpreter.c')
-rw-r--r--src/interpreter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interpreter.c b/src/interpreter.c
index af1eb82..a1d3823 100644
--- a/src/interpreter.c
+++ b/src/interpreter.c
@@ -6,7 +6,7 @@
/* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/17 19:15:49 by chuhlig #+# #+# */
-/* Updated: 2025/01/14 16:59:45 by chuhlig ### ########.fr */
+/* Updated: 2025/01/14 19:52:27 by chuhlig ### ########.fr */
/* */
/* ************************************************************************** */
@@ -22,7 +22,7 @@ int handle_redirections(t_redirection *redirs)
fd = open(redirs[0].specifier, O_RDONLY);
if (fd < 0)
{
- perror(redirs[0].specifier);
+ perror("open");
return (-1);
}
dup2(fd, STDIN_FILENO);