I can't reproduce the problem.
2004-02-28 09:38:
Subject: create_process unable to find executable after chroot [3613]
Product: Pike
Version: 7.5
Component: Core
Reporter: astra@upb.de
URL: https://community.roxen.com/crunch/show_bug.cgi?id=3613
The following does not work. There is a test file with exec permissions
/root/test and removing the chroot line will make it work.
It also fails with any other combination of PATH, /root/test, cwd, etc.
void main()
{
mapping env = getenv();
System.chroot("/root");
env["PATH"] = "/:/root/";
mapping options = ([
"stdin":Stdio.stdin,
"stdout":Stdio.stdout,
"env": env,
]);
Process.create_process( ({ "test" }), options );
}
/ Brevbäraren