authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-03-23 18:51:10+01:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-03-23 18:51:49+01:00
log336ed03f0f4ffde8e60fb8b4859c0c2158511338
tree05f9b68f1177af99529c4d7a96a2288c814291c2
parent27344464edea0b6acf4dfc78d71700d67a3f3968

debug: Accept relative paths in mapWholeFile


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/debug.zig+1-1
...@@ -1049,7 +1049,7 @@ const MachoSymbol = struct {...@@ -1049,7 +1049,7 @@ const MachoSymbol = struct {
10491049
1050fn mapWholeFile(path: []const u8) ![]align(mem.page_size) const u8 {1050fn mapWholeFile(path: []const u8) ![]align(mem.page_size) const u8 {
1051 noasync {1051 noasync {
1052 const file = try fs.openFileAbsolute(path, .{ .always_blocking = true });1052 const file = try fs.cwd().openFile(path, .{ .always_blocking = true });
1053 defer file.close();1053 defer file.close();
10541054
1055 const file_len = try math.cast(usize, try file.getEndPos());1055 const file_len = try math.cast(usize, try file.getEndPos());