mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
std.ChildProcess: correct fn getUserInfo pkg in setUserName
17b0166e moved getUserInfo from std.os to std.process
but ChildProcess.setUserName never updated the pkg name.
This commit is contained in:
@@ -122,7 +122,7 @@ pub const ChildProcess = struct {
|
||||
}
|
||||
|
||||
pub fn setUserName(self: *ChildProcess, name: []const u8) !void {
|
||||
const user_info = try os.getUserInfo(name);
|
||||
const user_info = try std.process.getUserInfo(name);
|
||||
self.uid = user_info.uid;
|
||||
self.gid = user_info.gid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user