Re: [OE-core] [PATCH v4] patch.bbclass: increase security

2012-09-16 Thread Chris Larson
On Fri, Sep 14, 2012 at 7:25 AM, Constantin Musca wrote: > -shutil.rmtree(process_tmpdir) > +bb.utils.remove(process_tmpdir, True) In the future, I'd suggest leveraging the ability to pass arguments by name to clarify the meaning of the boolean argument: bb.utils.remo

Re: [OE-core] [PATCH v4] patch.bbclass: increase security

2012-09-16 Thread Saul Wold
On 09/14/2012 07:25 AM, Constantin Musca wrote: - Use mkdtemp for generating temp dir names - Use bb.utils.remove for removing temp dirs - Add comment for explaining the "patch" workaround [YOCTO #3070] Signed-off-by: Constantin Musca --- meta/classes/patch.bbclass | 16

[OE-core] [PATCH v4] patch.bbclass: increase security

2012-09-14 Thread Constantin Musca
- Use mkdtemp for generating temp dir names - Use bb.utils.remove for removing temp dirs - Add comment for explaining the "patch" workaround [YOCTO #3070] Signed-off-by: Constantin Musca --- meta/classes/patch.bbclass | 16 1 file changed, 8 insertions(+), 8 deletions(-) dif