OpenVZ Forum


Home » General » Support » *SOLVED* getcwd dows not work on vps after chroot
Re: getcwd dows not work on vps after chroot [message #4777 is a reply to message #4760] Wed, 26 July 2006 07:44 Go to previous messageGo to previous message
disaster is currently offline  disaster
Messages: 158
Registered: February 2006
Senior Member
Hi!

I stopped the VPS, turned sys_chroot on and started the vps again. But the Script still does not work.

It works perfectly if i do:

chroot("/home");
chdir("/ABC");
getcwd(cwd, MAX_LENGTH);

but without chdir it does not work on a VPS.

So thanks for the bug report.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* debian venet0 is always 127.0.0.1
Next Topic: *SOLVED* copying files from HN to VEs
Goto Forum:
  


Current Time: Sun Oct 20 15:14:29 GMT 2024

Total time taken to generate the page: 0.05114 seconds