File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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" ) ) ) ]
910910pub fn chroot < P : AsRef < Path > > ( dir : P ) -> io:: Result < ( ) > {
911911 sys:: fs:: chroot ( dir. as_ref ( ) )
912912}
Original file line number Diff line number Diff 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" ) ) ) ]
13331333pub fn chroot ( dir : & Path ) -> io:: Result < ( ) > {
13341334 let dir = cstr ( dir) ?;
13351335 cvt ( unsafe { libc:: chroot ( dir. as_ptr ( ) ) } ) ?;
You can’t perform that action at this time.
0 commit comments