change getpwuid to just return 0

This commit is contained in:
Mark McCaskey 2019-03-25 16:59:23 -07:00
parent abafbbdbb2
commit 43a8a00d79

View File

@ -1,4 +1,4 @@
use libc::{chroot as _chroot, getpwuid as _getpwuid, printf as _printf}; use libc::{chroot as _chroot, printf as _printf};
use wasmer_runtime_core::vm::Ctx; use wasmer_runtime_core::vm::Ctx;
@ -24,8 +24,7 @@ pub fn chroot(ctx: &mut Ctx, name_ptr: i32) -> i32 {
} }
/// getpwuid /// getpwuid
pub fn getpwuid(_ctx: &mut Ctx, uid: i32) -> i32 { pub fn getpwuid(_ctx: &mut Ctx, _uid: i32) -> i32 {
debug!("emscripten::getpwuid"); debug!("emscripten::getpwuid");
// REVIEW: this seems wrong 0
unsafe { _getpwuid(uid as u32) as _ }
} }