Skip to content

Commit df9e152

Browse files
committed
chore: Update nix to latest
1 parent cea5523 commit df9e152

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ crossbeam = "0.8.1"
3131
futures = "0.3.19"
3232
libc = "0.2.112"
3333
log = {version = "0.4.2", features=["kv_unstable"]}
34-
nix = "0.29"
34+
nix = "0.30"
3535
oci-spec = "0.7"
3636
os_pipe = "1.1"
3737
prctl = "1.0.0"

crates/runc/src/asynchronous/io.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
*/
1616

17-
use std::{fmt::Debug, io::Result, os::unix::io::AsRawFd, process::Stdio};
17+
use std::{fmt::Debug, io::Result, process::Stdio};
1818

1919
use async_trait::async_trait;
2020
use nix::unistd::{Gid, Uid};
@@ -67,10 +67,10 @@ impl PipedIo {
6767
let gid = Some(Gid::from_raw(gid));
6868
if stdin {
6969
let rd = pipe.rd.try_clone()?;
70-
nix::unistd::fchown(rd.as_raw_fd(), uid, gid)?;
70+
nix::unistd::fchown(rd, uid, gid)?;
7171
} else {
7272
let wr = pipe.wr.try_clone()?;
73-
nix::unistd::fchown(wr.as_raw_fd(), uid, gid)?;
73+
nix::unistd::fchown(wr, uid, gid)?;
7474
}
7575
Ok(Some(pipe))
7676
}

0 commit comments

Comments
 (0)