Expected bahaviour of os.chroot and os.getcwd

r0g aioe.org at technicalbloke.com
Tue Sep 14 15:11:31 CEST 2010


On 14/09/10 11:19, Nobody wrote:
> On Mon, 13 Sep 2010 19:04:53 +0100, r0g wrote:
>
>> i.e. So do I always have to change directory after changing into a chroot?
>
> You don't *have* to change the directory, but not doing so probably
> defeats the point of performing a chroot().
<snip>

Thanks for the info 'Nobody', that was really clear and helpful :) It's 
kinda obvious once it's pointed out I suppose, the docs for the os 
module are primarily the os's own docs, should have thought to check the 
manpages eh, duh!

Thanks very much for getting back to me,

Roger.



More information about the Python-list mailing list