Closed chrta closed 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.
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.