summaryrefslogtreecommitdiff
path: root/src/user/app/shell/shell.c
diff options
context:
space:
mode:
authordzwdz2023-08-10 00:07:35 +0200
committerdzwdz2023-08-10 00:07:35 +0200
commitfe2767219e22eda853cb1ad30c44c49afc1bed66 (patch)
tree251531bc8cef34b8d7c31d421ba3a0ba9020198c /src/user/app/shell/shell.c
parent6126525ed2ad3fb2543c43dbca6b01106af02180 (diff)
user/fs: no longer inject MOUNT_ATs by default
arguably the wrong choice from an usability standpoint, but the right choice from a performance standpoint. there's definitely a nicer way to do this
Diffstat (limited to 'src/user/app/shell/shell.c')
-rw-r--r--src/user/app/shell/shell.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/user/app/shell/shell.c b/src/user/app/shell/shell.c
index e9293bc..65f08b6 100644
--- a/src/user/app/shell/shell.c
+++ b/src/user/app/shell/shell.c
@@ -41,6 +41,9 @@ void run_args(int argc, char **argv, struct redir *redir) {
fprintf(stderr, "mount: not enough arguments\n");
return;
}
+ MOUNT_AT("/") {
+ fs_dirinject(argv[1]);
+ }
MOUNT_AT(argv[1]) {
run_args(argc - 2, argv + 2, redir);
exit(1);