Passwd pwd = posix.getpwuid(uid);
if(pwd == null) {
if (Platform.IS_WINDOWS) { // MRI behavior
return recv.getRuntime().getNil();
}
throw runtime.newArgumentError("can't find user for " + uid);
}
return setupPasswd(runtime, pwd);
} catch (RaiseException re) {
if (runtime.getNotImplementedError().isInstance(re.getException())) {
return runtime.getNil();