Change shell binary to /bin/psh

This commit is contained in:
pjht 2024-11-10 10:24:10 -06:00
parent 021c63b0a5
commit 964ca333b6
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E

View File

@ -63,12 +63,14 @@ fn main() {
let pts = File::open("/dev/pts0").unwrap();
Command::new("/bin/pts_tester")
match Command::new("/bin/psh")
.stdin(pts.try_clone().unwrap())
.stdout(pts.try_clone().unwrap())
.stderr(pts)
.spawn()
.unwrap();
.spawn() {
Ok(_) => (),
Err(e) => writeln!(display, "Unable to start shell (/bin/psh): {}", e).unwrap(),
};
let mut kbd_buf = [0u8; 512];
let mut pty_buf = [0u8; 512];