mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-01 00:44:54 -04:00
Config: fix crash related to absolute paths
BoringSSL is fine with that still.
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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