Skip to content

Commit c51079e

Browse files
committed
bentobox: bug fix
1 parent e6be5c3 commit c51079e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

apps/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ int main(int argc, char *argv[]) {
3939

4040
if (pid == 0) {
4141
char *arg[] = { "/usr/bin/bash", NULL };
42-
char *envp[] = { "HOME=" HOME, NULL };
42+
char *envp[] = { "HOME=" HOME, "TERM=xterm-256color", NULL };
4343
execve(arg[0], arg, envp);
4444
perror("execvp");
4545
exit(1);

base/root/.bashrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
PS1='[\u@\h \W]\$ '
1+
#PS1='[\u@\h \W]\$ '
2+
PS1="\033[1;32m\u@\h\033[0m:\033[1;34m\w\033[0m\\$ "

kernel/sys/sched.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ struct task *sched_new_user_task(void *entry, const char *name, int argc, char *
207207
*mxcsr |= 0x8040;
208208
proc->children = NULL;
209209
proc->parent = NULL;
210-
proc->dir = vfs_root;
210+
proc->cwd = vfs_root;
211211
proc->doing_blocking_io = false;
212212

213213
return proc;

0 commit comments

Comments
 (0)