]> code.ossystems Code Review - openembedded-core.git/commit
package.bbclass: fix directories setuid and setgid bits
authorJoël Esponde <joel.esponde@easymile.com>
Thu, 18 Jul 2019 13:47:39 +0000 (15:47 +0200)
committerArmin Kuster <akuster808@gmail.com>
Wed, 4 Sep 2019 15:21:53 +0000 (08:21 -0700)
commitfe6546aab208e5fa2e238aa266db0ea66ad520a1
tree546e099f25e1d35609c127694fdb8ef385953fca
parent423115b70a4a2cdef4b3882ad4491446b84a1f1e
package.bbclass: fix directories setuid and setgid bits

populate_packages relies on ``mkdir`` to both create a directory and set
its permissions. However, ``mkdir`` honors the ``umask`` value.
Therefore, some bits may be lost in the operation. In our case, the
setgid bit on the directories were lost.

This commit fixes this by having a distinct call to create the directory
and to set the permissions.

Signed-off-by: Jean-Tiare Le Bigot <jean-tiare.le-bigot@easymile.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/package.bbclass