Skip to content

Commit 02261e4

Browse files
committed
Fix comments
1 parent 0f58289 commit 02261e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/shims/env.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,14 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
120120
let this = self.eval_context_mut();
121121

122122
if !this.machine.communicate {
123-
throw_unsup_format!("Function not available when isolation is enabled")
123+
throw_unsup_format!("`getcwd` not available when isolation is enabled")
124124
}
125125

126126
let tcx = &{ this.tcx.tcx };
127127

128128
let buf = this.force_ptr(this.read_scalar(buf_op)?.not_undef()?)?;
129129
let size = this.read_scalar(size_op)?.to_usize(&*this.tcx)?;
130130
// If we cannot get the current directory, we return null
131-
// FIXME: Technically we have to set the `errno` global too
132131
match env::current_dir() {
133132
Ok(cwd) => {
134133
// It is not clear what happens with non-utf8 paths here

0 commit comments

Comments
 (0)