Commit ad613d9d09e12c2397d8804c66f65ff1f89eed64

Guillem Jover 2013-06-07T07:11:50

Create a shallow copy of environ before replacing it in setproctitle() Because clearenv() or setenv() might free the environ array of pointers, we should make sure to copy it so that we can access it later on when doing the deep copy via setenv(). Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=65470