diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-12-01 09:56:01 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-12-01 09:56:01 -0500 |
| commit | b36c07a95a6cf9b2cc120133b44cbd0673e6823a (patch) | |
| tree | 2c2bf8ff9137d51b80ae56dc70ef9375b8c13583 /lib/std/net.zig | |
| parent | b220be7a33a9835a1ec7a033e472830290332d57 (diff) | |
| parent | 4b6740e19d57454f3c4eac0c2e9a92ce08e7ec04 (diff) | |
| download | zig-b36c07a95a6cf9b2cc120133b44cbd0673e6823a.tar.gz zig-b36c07a95a6cf9b2cc120133b44cbd0673e6823a.zip | |
Merge remote-tracking branch 'origin/master' into remove-array-type-coercion
Diffstat (limited to 'lib/std/net.zig')
| -rw-r--r-- | lib/std/net.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/net.zig b/lib/std/net.zig index 7502f1e262..6091564a93 100644 --- a/lib/std/net.zig +++ b/lib/std/net.zig @@ -812,7 +812,7 @@ fn linuxLookupNameFromHosts( family: os.sa_family_t, port: u16, ) !void { - const file = fs.File.openReadC("/etc/hosts") catch |err| switch (err) { + const file = fs.openFileAbsoluteC("/etc/hosts", .{}) catch |err| switch (err) { error.FileNotFound, error.NotDir, error.AccessDenied, @@ -1006,7 +1006,7 @@ fn getResolvConf(allocator: *mem.Allocator, rc: *ResolvConf) !void { }; errdefer rc.deinit(); - const file = fs.File.openReadC("/etc/resolv.conf") catch |err| switch (err) { + const file = fs.openFileAbsoluteC("/etc/resolv.conf", .{}) catch |err| switch (err) { error.FileNotFound, error.NotDir, error.AccessDenied, |
