Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 340 Bytes

oelint.task.nocopy.md

File metadata and controls

25 lines (17 loc) · 340 Bytes

oelint.task.nocopy

severity: error

Example

do_install() {
    cp ${WORKDIR}/foo ${D}/foo
}

Why is this bad?

cp uses the current user's settings for default permissions, which can differ across multiple users.

Ways to fix it

Use install instead

do_install() {
    install ${WORKDIR}/foo ${D}/foo
}