Re:C stdlib isn't threadsafe and even safe Rust didn't save us
by throwaway2037 on Thursday January 23, 2025 @05:06AM
(#42802529)
It is interesting that they do not allow ability to change env and working dir via security policy or a command line arg (--allow-setenv, etc.).
[ Parent
| on HN ]
Re:C stdlib isn't threadsafe and even safe Rust didn't save us
by xxs on Thursday January 23, 2025 @05:48AM
(#42802752)
That would be so much wasted engineering effort. The actual solution is simple: read what you need from env, and pass it as parameters to the functions you want to. The values of what you have read can be changed... and if you really, really want start a child process with a modified env.