Skip to content

Commit 2cdb644

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

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
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
}

crates/runc/src/synchronous/io.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ impl PipedIo {
7272
let gid = Some(Gid::from_raw(gid));
7373
if stdin {
7474
let rd = pipe.rd.try_clone()?;
75-
nix::unistd::fchown(rd.as_raw_fd(), uid, gid)?;
75+
nix::unistd::fchown(rd, uid, gid)?;
7676
} else {
7777
let wr = pipe.wr.try_clone()?;
78-
nix::unistd::fchown(wr.as_raw_fd(), uid, gid)?;
78+
nix::unistd::fchown(wr, uid, gid)?;
7979
}
8080
Ok(Some(pipe))
8181
}

0 commit comments

Comments
 (0)