*SOLVED* getcwd dows not work on vps after chroot [message #4760] |
Tue, 25 July 2006 17:54 |
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
|
|
|
|
|
|
|