Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nix-rust/nix
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bf2ce17acf8833612b9bba61895da5511bd4470d
Choose a base ref
..
head repository: nix-rust/nix
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 115e72acd00c127fa6f8db108123022cafde4aa0
Choose a head ref
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/fcntl.rs
2 changes: 2 additions & 0 deletions src/fcntl.rs
Original file line number Diff line number Diff line change
@@ -595,6 +595,8 @@ pub fn fcntl(fd: RawFd, arg: FcntlArg) -> Result<c_int> {
let p = info.kf_path;
let u8_slice = slice::from_raw_parts(p.as_ptr().cast(), p.len());
let optr = CStr::from_bytes_until_nul(u8_slice).unwrap();
*path = PathBuf::from(OsString::from(optr.to_str().unwrap()));
return Ok(ok_res)
},
#[cfg(any(target_os = "macos", target_os = "ios"))]
F_GETPATH_NOFIRMLINK(path) => {