[OE-core] [jethro][PATCH] license.bbclass: fix host contamination warnings for license files

Burton, Ross ross.burton at intel.com
Wed Nov 25 21:28:39 UTC 2015


On 25 November 2015 at 14:58, Jagadeesh Krishnanjanappa <
jkrishnanjanappa at mvista.com> wrote:

> Yes, since copy_license_files() function is executed within the pseudo
> environement (fakeroot), both os.getuid() and os.getgid() return 0, which
> resembles to uid and gid of root user. Also, os.chown accepts integer
> values for 2nd and 3rd arguments.
>

So is there any advantage to using os.getuid() over hardcoding 0:0? It's
not like root is going to have a different UID.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20151125/2b928b59/attachment-0002.html>


More information about the Openembedded-core mailing list