mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00: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:
parent
91b05ad473
commit
2eb0909206
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user