mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-07-30 17:25:58 -04:00
Config: fix crash related to absolute paths
BoringSSL is fine with that still.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user