OpenVZ Forum


Home » General » Support » *SOLVED* getcwd dows not work on vps after chroot
*SOLVED* getcwd dows not work on vps after chroot [message #4760] Tue, 25 July 2006 17:54 Go to previous message
disaster is currently offline  disaster
Messages: 158
Registered: February 2006
Senior Member
Hello!

I've a little C Script which works perfectly with Kernel from 2.4 - 2.6.17.x on every normal system.

On a VPS getcwd returns always NULL.

Here is some code - like the script works:

chroot("/home");

getcwd(cwd, MAX_LENGTH);

on the a normal hardware server getcwd works correkt - on a VPS (same installation / same image) it always returns NULL and cwd is empty.

Stefan

[Updated on: Wed, 26 July 2006 20:07] by Moderator

Report message to a moderator

 
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: Fri Sep 27 21:30:27 GMT 2024

Total time taken to generate the page: 0.05528 seconds