From 6d14fbf3dbbe5e580e4ecc1033edff0edeea85d6 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Fri, 3 May 2019 14:32:06 +0800 Subject: [PATCH] Fix typo in ioctl --- kernel/src/fs/ioctl.rs | 2 +- kernel/src/shell.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/src/fs/ioctl.rs b/kernel/src/fs/ioctl.rs index e9fa9ca6..dc3d9970 100644 --- a/kernel/src/fs/ioctl.rs +++ b/kernel/src/fs/ioctl.rs @@ -28,7 +28,7 @@ pub const TIOCGWINSZ: usize = 0x4_008_74_68; #[cfg(not(target_arch = "mips"))] pub const FIONCLEX: usize = 0x5450; #[cfg(target_arch = "mips")] -pub const FIOCLEX: usize = 0x6602; +pub const FIONCLEX: usize = 0x6602; #[cfg(not(target_arch = "mips"))] pub const FIOCLEX: usize = 0x5451; diff --git a/kernel/src/shell.rs b/kernel/src/shell.rs index 45274c84..48b7608d 100644 --- a/kernel/src/shell.rs +++ b/kernel/src/shell.rs @@ -45,9 +45,9 @@ pub fn add_user_shell() { let inode = ROOT_INODE.lookup(&cmdline).unwrap(); processor().manager().add(Thread::new_user( &inode, - "/busybox", cmdline.split(' ').map(|s| s.into()).collect(), Vec::new(), + Vec::new() )); }