saleyn / erlexec

Execute and control OS processes from Erlang/OTP
https://hexdocs.pm/erlexec/readme.html
Other
525 stars 139 forks source link

Omit calling getpwnam for user root #140

Closed chrta closed 3 years ago

chrta commented 3 years ago

In very simple yocto base images, there is no /etc/passwd file etc and there is only the user root. For these images getpwnam("root") returns NULL. Since user root always has the id 0, this call can be omitted in that case.