commit 336ed03f0f4ffde8e60fb8b4859c0c2158511338 (tree)
parent 27344464edea0b6acf4dfc78d71700d67a3f3968
Author: LemonBoy <thatlemon@gmail.com>
Date: Mon, 23 Mar 2020 18:51:10 +0100
debug: Accept relative paths in mapWholeFile
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
@@ -1049,7 +1049,7 @@ const MachoSymbol = struct {
fn mapWholeFile(path: []const u8) ![]align(mem.page_size) const u8 {
noasync {
- const file = try fs.openFileAbsolute(path, .{ .always_blocking = true });
+ const file = try fs.cwd().openFile(path, .{ .always_blocking = true });
defer file.close();
const file_len = try math.cast(usize, try file.getEndPos());