I think clearing environment using:

environ[0] = NULL;

has been kind of a semi-standard for a while now. At least Dovecot and
Postfix clears their environment this way. But this no longer works in
FreeBSD 7.0 (putenv(), environ[0]=NULL, putenv() -> everything is
visible again). Was this change intended, or will this be fixed?

Looks like I could work around this by using:

environ = NULL;

but I'm afraid what other OSes that change would break. I guess going
through environ and unsetenv()ing everything would work too, but it
feels annoyingly slow for such a simple operation.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to