]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
utils: create_cmdline_shebang_wrapper preserve permission and ownership
authorPaulo Neves <ptsneves@gmail.com>
Sun, 3 Jul 2022 11:41:14 +0000 (13:41 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Jul 2022 14:15:11 +0000 (15:15 +0100)
commit47973fd4f3fbb0af1a0d1bc2c39f2900a963177d
tree1bec3126946415f5f715db44cbb7f2546867780d
parent68f49af704a4e808ad274d689e884923776edfec
utils: create_cmdline_shebang_wrapper preserve permission and ownership

The .real command was not given the same permissions and ownership as
the original pre-wrap file and this is now fixed.

A situation where the original pre-wrap file did not have write
permissions would cause a failure in the wrapping is also fixed.

Test update also included.

Signed-off-by: Paulo Neves <ptsneves@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-selftest/recipes-test/wrapper/cmdline-shebang-wrapper-test.bb
meta/classes/utils.bbclass