We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f763c7 commit 4a34e27Copy full SHA for 4a34e27
src/tools/miri/src/shims/unix/fs.rs
@@ -339,7 +339,10 @@ trait EvalContextExtPrivate<'tcx>: crate::MiriInterpCxExt<'tcx> {
339
_ => interp_ok(this.eval_libc("DT_UNKNOWN").to_u8()?.into()),
340
}
341
342
- Err(e) => this.io_error_to_errnum(e)?.to_i32(),
+ Err(_) => {
343
+ // Fallback on error
344
+ interp_ok(this.eval_libc("DT_UNKNOWN").to_u8()?.into())
345
+ }
346
347
348
0 commit comments