slice pointer and unit test fixes
This commit is contained in:
@@ -112,7 +112,7 @@ export fn _nss_turbo_getpwuid_r(
|
||||
errnop.* = @enumToInt(os.E.AGAIN);
|
||||
return c.NSS_STATUS_UNAVAIL;
|
||||
}
|
||||
const cuser = state.file.?.db.getpwuid(uid, &buf[0..len]) catch |err| switch (err) {
|
||||
const cuser = state.file.?.db.getpwuid(uid, buf[0..len]) catch |err| switch (err) {
|
||||
error.OutOfMemory => {
|
||||
errnop.* = @enumToInt(os.E.RANGE);
|
||||
return c.NSS_STATUS_TRYAGAIN;
|
||||
|
||||
Reference in New Issue
Block a user