In article <[EMAIL PROTECTED]>,
 "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> ...  It seems me that the os.chroot() call is messing up the
> os.execve() (which executes the cgi script).  os.execve(pth, args,
> envVariables) is only executed if os.path.exists(pth) returns True.
> But when I run a CGI script that os.path.exists(pth) returns True for,
> then os.execve(pth) python throws back the error:
> 
> File "/***/***/***/Unpriv.py", line 201, in execCGI
> OSError: [Errno 2] No such file or directory
> 
> However I don't see how this is possible if os.path.exists(pth) returns
> True, why is it os.execve() has problems finding it.

I haven't used chroot enough to know all the pitfalls, but
here's one guess:  suppose the CGI script file `pth' might
actually be a script, with a `#!' top line that points to
an interpreter that isn't there, in your chroot space?

   Donn Cave, [EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to