• Jonas Termansen's avatar
    Make putenv(3) copy the input string. · 90a4009c
    Jonas Termansen authored
    This violates POSIX but POSIX is stupid in this respect. Of course, this
    will ever so subtly break some applications. Not sure how this stupid design
    can be fixed without breaking backwards compatibility. Perhaps remove the
    putenv(3) function and replace it with a better replacement? (Or perhaps you
    should just use setenv(3) anyways..)
env.cpp 5.69 KB