문제

I am looking for a solution to have the concept of chroot in a perl script that runs on windows as it seems there is no chroot in Windows perl ports.

도움이 되었습니까?

해결책

Given what you've requested in your comment to your question, you may want to look into the subsumes method of Path::Class::Dir objects. Other options include Cwd::Ext::abs_path_is_in() and Cwd::realpath().

Understand that this is nothing like chroot and will have no effect on child processes, string evals or even Modules you load.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top