Only ignore clock table on ENOENT

This commit is contained in:
Rodrigo Arias 2023-03-21 16:18:41 +01:00 committed by Rodrigo Arias Mallo
parent 81875450a8
commit 3d957f444c

View File

@ -337,7 +337,7 @@ load_clock_offsets(struct clkoff *clkoff, struct emu_args *args)
FILE *f = fopen(offset_file, "r"); FILE *f = fopen(offset_file, "r");
if (f == NULL) { if (f == NULL) {
if (is_optional) if (is_optional && errno == ENOENT)
return 0; return 0;
err("fopen %s failed:", offset_file); err("fopen %s failed:", offset_file);