Jason Edgecombe <[EMAIL PROTECTED]> writes:

> My C is weak. Do I pass null as the third parameter to execve?  or do I
> have to get a copy of the environment. what function call gives that?

>        execve("/bin/cp", copy, env);

The only point of using execve instead of execv is to override the
environment, so since you don't need to do that, you can just change the
call to execv and drop the env argument.  (This assumes that pinstall
isn't intentionally setting the environment to something that affects the
behavior of cp; I haven't looked at the code.)

-- 
Russ Allbery ([EMAIL PROTECTED])             <http://www.eyrie.org/~eagle/>
_______________________________________________
OpenAFS-devel mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-devel

Reply via email to