]> code.ossystems Code Review - openembedded-core.git/commit
package.bbclass: fix directories setuid and setgid bits
authorJoël Esponde <joel.esponde@easymile.com>
Thu, 27 Jun 2019 09:12:04 +0000 (11:12 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Jun 2019 23:02:44 +0000 (00:02 +0100)
commit0f82b53a650e76e0129fae6ce7581a41d042315b
tree08de65400fb1bac703939b2fed2409d0ee551aa0
parent9f674a88c781c7092d5b3460922a1579b9fe4bf9
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: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass