Re: os.execve(pth,args,env) and os.chroot(pth) = problems

2006-03-08 Thread [EMAIL PROTECTED]
Thanks for the reply Donn, It seems logical enough to me that finding #!/usr/bin/env python in the script file with the chroot I have used, is the problem. Once again thank you for the help. Regards, Gavin -- http://mail.python.org/mailman/listinfo/python-list

Re: os.execve(pth,args,env) and os.chroot(pth) = problems

2006-03-07 Thread Donn Cave
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