Skip to content

Lightpanda: the headless browser designed for AI and automation

`Config`: fix crash related to absolute paths

Halil Durakcbaef301d98e
diff --git a/src/Config.zig b/src/Config.zig
index db7d75d16..d017dd29c 100644
--- a/src/Config.zig
+++ b/src/Config.zig
@@ -86,7 +86,7 @@ fn logLevelValidator(_: Allocator, args: *std.process.Args.Iterator) !?log.Level
}
pub fn isHashedDirectory(dir: []const u8) bool {
- var handle = std.fs.openDirAbsolute(dir, .{ .iterate = true }) catch return false;
+ var handle = std.fs.cwd().openDir(dir, .{ .iterate = true }) catch return false;
defer handle.close();
var it = handle.iterate();