good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: Re: Re: Re: Re: Re: Re: Re: exiting a chroot environmentby MarkM (Curate) |
on Jul 09, 2003 at 02:27 UTC ( [id://272545]=note: print w/replies, xml ) | Need Help?? |
The root file system is the only file system that doesn't need /. and /.. to be special. The special case is when a file system is mounted as a non-root filesystem, as then /mount/point/.. needs to appear to refer to the same inode as /mount does. The same is true of chroot(). The Linux code seems to jump through quite a few hoops (with functions names like 'graft_tree()') to deal with mounts...
In Section
Seekers of Perl Wisdom
|
|