Skip to content

Commit

Permalink
Merge pull request #3624 from mulkieran/nix-0.29.0
Browse files Browse the repository at this point in the history
Increase nix dependency lower bound to 0.29.0
  • Loading branch information
mulkieran authored Jun 24, 2024
2 parents 57f48c3 + f346d75 commit b21f309
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
26 changes: 22 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ version = "0.4.19"
optional = true

[dependencies.nix]
version = "0.28.0"
version = "0.29.0"
optional = true
features = ["fs", "ioctl", "mount", "poll", "process", "sched", "signal", "socket"]

Expand Down
2 changes: 1 addition & 1 deletion src/jsonrpc/server/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ fn try_recvmsg(fd: RawFd) -> StratisResult<StratisParams> {
let (cmsgs, bytes) = {
let mut iovecs = [IoSliceMut::new(vec.as_mut_slice())];
let rmsg = recvmsg::<UnixAddr>(fd, &mut iovecs, Some(&mut cmsg_space), MsgFlags::empty())?;
(rmsg.cmsgs().collect(), rmsg.bytes)
(rmsg.cmsgs()?.collect(), rmsg.bytes)
};

let fd_opt = handle_cmsgs(cmsgs)?;
Expand Down

0 comments on commit b21f309

Please sign in to comment.