diff --git a/src/util.zig b/src/util.zig index aef7ac3..40b3a97 100644 --- a/src/util.zig +++ b/src/util.zig @@ -1,9 +1,14 @@ +const std = @import("std"); + pub const IPs = struct { v4: [:0]const u8, v6: [:0]const u8, }; -pub fn check_perms() !void {} +pub fn check_perms() !void { + var f = try std.fs.openFileAbsolute("/etc/hosts", .{ .mode = .write_only }); + f.close(); +} pub fn get_input() ![:0]const u8 { return "stub";