[OpenAFS-devel] problem with src/pinstall/install.c

Steven Jenkins steven.jenkins@ieee.org
Sun, 03 Aug 2003 12:10:08 -0700


An OpenAFS bug was reported on the Gentoo bugzilla:

http://bugs.gentoo.org/show_bug.cgi?id=19241

The issue was reolved by applying a patch to install.c (not the one 
attached to the bug report). It seems to me that a fix should be applied 
to the OpenAFS code.

The problem is calls to execve() with the envp argument set to NULL. 
POSIX does not allow envp to be NULL: "The argument envp to execve() 
[...] name[s] an array of character pointers to NULL-terminated strings. 
[....] The environment array is terminated by a NULL pointer." That 
sounds to me like envp must point to a real array.

I couldn't find anything about it in OpenAFS bugzilla.

Steve