File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -203,9 +203,11 @@ pub trait CommandExt: Sealed {
203203 /// the command.
204204 ///
205205 /// This happens before changing to the directory specified with `Command::current_dir`, and
206- /// that directory will be relative to the new root. If no directory has been specified with
207- /// `Command::current_dir`, this will set the directory to `/`, to avoid leaving the current
208- /// directory outside the chroot.
206+ /// that directory will be relative to the new root.
207+ ///
208+ /// If no directory has been specified with `Command::current_dir`, this will set the directory
209+ /// to `/`, to avoid leaving the current directory outside the chroot. (This is an intentional
210+ /// difference from the underlying `chroot` system call.)
209211 #[ unstable( feature = "process_chroot" , issue = "none" ) ]
210212 fn chroot < P : AsRef < Path > > ( & mut self , dir : P ) -> & mut process:: Command ;
211213}
You can’t perform that action at this time.
0 commit comments