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:
alex 2022-10-02 12:01:23 +02:00 committed by Veikka Tuominen
parent 91b05ad473
commit 2eb0909206

View File

@ -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;
}