summaryrefslogtreecommitdiff
path: root/src/user/app/shell/builtins.c
diff options
context:
space:
mode:
authordzwdz2022-08-08 19:04:27 +0200
committerdzwdz2022-08-08 19:04:27 +0200
commitf2703089da21898e9c3127615e98c1717c7ceeb5 (patch)
treed4a80164a20b34cbf594e72d758708be23c0e6e1 /src/user/app/shell/builtins.c
parenta4634ea9458fcc4856ad52bcf383efcb9134091f (diff)
user/libc: cwd
Diffstat (limited to 'src/user/app/shell/builtins.c')
-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 0f06482..efc427d 100644
--- a/src/user/app/shell/builtins.c
+++ b/src/user/app/shell/builtins.c
@@ -107,7 +107,7 @@ static void cmd_ls(int argc, char **argv) {
const size_t buflen = 4096;
char *buf = malloc(buflen);
- DEFAULT_ARGV("/");
+ DEFAULT_ARGV(".");
for (int i = 1; i < argc; i++) {
char *path = (void*)argv[i];
int pathlen = strlen(path);