Skip to content

Commit 1f0db72

Browse files
committed
Not implement os::unix::fs::chroot for vxworks
1 parent c1dd460 commit 1f0db72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

std/src/os/unix/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ impl DirBuilderExt for fs::DirBuilder {
906906
/// }
907907
/// ```
908908
#[unstable(feature = "unix_chroot", issue = "84715")]
909-
#[cfg(not(target_os = "fuchsia"))]
909+
#[cfg(not(any(target_os = "fuchsia", target_os = "vxworks")))]
910910
pub fn chroot<P: AsRef<Path>>(dir: P) -> io::Result<()> {
911911
sys::fs::chroot(dir.as_ref())
912912
}

std/src/sys/unix/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> {
13291329
Ok(bytes_copied as u64)
13301330
}
13311331

1332-
#[cfg(not(target_os = "fuchsia"))]
1332+
#[cfg(not(any(target_os = "fuchsia", target_os = "vxworks")))]
13331333
pub fn chroot(dir: &Path) -> io::Result<()> {
13341334
let dir = cstr(dir)?;
13351335
cvt(unsafe { libc::chroot(dir.as_ptr()) })?;

0 commit comments

Comments
 (0)