File tree 2 files changed +2
-2
lines changed
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 {
906
906
/// }
907
907
/// ```
908
908
#[ unstable( feature = "unix_chroot" , issue = "84715" ) ]
909
- #[ cfg( not( target_os = "fuchsia" ) ) ]
909
+ #[ cfg( not( any ( target_os = "fuchsia" , target_os = "vxworks" ) ) ) ]
910
910
pub fn chroot < P : AsRef < Path > > ( dir : P ) -> io:: Result < ( ) > {
911
911
sys:: fs:: chroot ( dir. as_ref ( ) )
912
912
}
Original file line number Diff line number Diff line change @@ -1329,7 +1329,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> {
1329
1329
Ok ( bytes_copied as u64 )
1330
1330
}
1331
1331
1332
- #[ cfg( not( target_os = "fuchsia" ) ) ]
1332
+ #[ cfg( not( any ( target_os = "fuchsia" , target_os = "vxworks" ) ) ) ]
1333
1333
pub fn chroot ( dir : & Path ) -> io:: Result < ( ) > {
1334
1334
let dir = cstr ( dir) ?;
1335
1335
cvt ( unsafe { libc:: chroot ( dir. as_ptr ( ) ) } ) ?;
You can’t perform that action at this time.
0 commit comments