From 43a8a00d7938be6bfd740f201577280a9d93b8cb Mon Sep 17 00:00:00 2001 From: Mark McCaskey Date: Mon, 25 Mar 2019 16:59:23 -0700 Subject: [PATCH] change getpwuid to just return 0 --- lib/emscripten/src/io/unix.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/emscripten/src/io/unix.rs b/lib/emscripten/src/io/unix.rs index b91ff3312..d120e754d 100644 --- a/lib/emscripten/src/io/unix.rs +++ b/lib/emscripten/src/io/unix.rs @@ -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; @@ -24,8 +24,7 @@ pub fn chroot(ctx: &mut Ctx, name_ptr: i32) -> i32 { } /// getpwuid -pub fn getpwuid(_ctx: &mut Ctx, uid: i32) -> i32 { +pub fn getpwuid(_ctx: &mut Ctx, _uid: i32) -> i32 { debug!("emscripten::getpwuid"); - // REVIEW: this seems wrong - unsafe { _getpwuid(uid as u32) as _ } + 0 }