Config: fix crash related to absolute paths

BoringSSL is fine with that still.
This commit is contained in:
Halil Durak
2026-07-15 15:23:55 +03:00
parent 6f828cb92e
commit cbaef301d9

View File

@@ -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();