mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-12 17:08:39 -09:00
Ignore ENOTDIR when trying to open config files
This commit is contained in:
parent
1b918a5a74
commit
f46c7ec65d
1 changed files with 1 additions and 0 deletions
|
|
@ -247,6 +247,7 @@ fn argConfig(args: *Args, opt: Args.Option) bool {
|
|||
fn tryReadArgsFile(path: [:0]const u8) void {
|
||||
var f = std.fs.cwd().openFileZ(path, .{}) catch |e| switch (e) {
|
||||
error.FileNotFound => return,
|
||||
error.NotDir => return,
|
||||
else => ui.die("Error opening {s}: {s}\n", .{ path, ui.errorString(e) }),
|
||||
};
|
||||
defer f.close();
|
||||
|
|
|
|||
Loading…
Reference in a new issue