handle duplicate gid

This commit is contained in:
2022-07-04 06:09:03 +03:00
parent e6b9d43646
commit eaccd00960
5 changed files with 57 additions and 20 deletions

View File

@@ -6,6 +6,7 @@ const process = std.process;
const DB = @import("DB.zig");
const File = @import("File.zig");
const ErrCtx = @import("ErrCtx.zig");
const CGroup = @import("Group.zig").CGroup;
const PackedGroup = @import("PackedGroup.zig");
const CUser = @import("User.zig").CUser;
@@ -131,7 +132,8 @@ export fn _nss_turbo_getpwuid_r(
const testing = std.testing;
test "nss_turbo_getpwuid_r" {
var tf = try File.TestDB.init(testing.allocator);
var errc = ErrCtx{};
var tf = try File.TestDB.init(testing.allocator, &errc);
defer tf.deinit();
var env = try process.getEnvMap(testing.allocator);