Update python

master
Harry Cheng 5 years ago
parent 4731278a0b
commit 8a15dbc6c0

@ -146,7 +146,7 @@ impl Thread {
) -> Result<(MemorySet, usize, usize), &'static str> {
// Read ELF header
// 0x3c0: magic number from ld-musl.so
let mut data: [u8; 0x3c0] = unsafe { MaybeUninit::uninit().assume_init() };
let mut data: [u8; 6000] = unsafe { MaybeUninit::uninit().assume_init() };
inode
.read_at(0, &mut data)
.map_err(|_| "failed to read from INode")?;

@ -510,7 +510,6 @@ impl Syscall<'_> {
Err(FsError::EntryNotFound) => break,
r => r,
}?;
debug!("getdents64: got {}", entry.1);
let ok = writer.try_write(entry.0 as u64, DirentType::from_type(&info.type_).bits(), &entry.1);
if !ok {
break;
@ -914,6 +913,7 @@ impl Process {
}
_ => {}
}
let (fd_dir_path, fd_name) = split_path(&path);
match fd_dir_path {
"/proc/self/fd" => {

@ -1 +1 @@
Subproject commit b055c8df6258bc887e121d40979816fa578cc00a
Subproject commit 71ab876cf51a85f81d1c10f1ef4100a4b2981296
Loading…
Cancel
Save