summaryrefslogtreecommitdiff
path: root/src/user/app/shell
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app/shell')
-rw-r--r--src/user/app/shell/builtins.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user/app/shell/builtins.c b/src/user/app/shell/builtins.c
index e272cf3..d0a2e3a 100644
--- a/src/user/app/shell/builtins.c
+++ b/src/user/app/shell/builtins.c
@@ -13,7 +13,7 @@ static void cmd_cat(int argc, const char **argv) {
if (argv[1])
file = fopen(argv[1], "r");
else
- file = file_clone(stdin);
+ file = file_clone(stdin, "r");
if (!file) {
eprintf("couldn't open");