git.openpandora.org
/
openembedded.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
640cdb6
)
kernel.bbclass: do not use insecure tmpnam() function for generating unique names
author
Marcin Juszkiewicz
<hrw@openembedded.org>
Mon, 12 Jan 2009 17:33:47 +0000
(18:33 +0100)
committer
Marcin Juszkiewicz
<hrw@openembedded.org>
Mon, 12 Jan 2009 17:50:17 +0000
(18:50 +0100)
classes/kernel.bbclass
patch
|
blob
|
history
diff --git
a/classes/kernel.bbclass
b/classes/kernel.bbclass
index
e8f2fb6
..
c864782
100644
(file)
--- a/
classes/kernel.bbclass
+++ b/
classes/kernel.bbclass
@@
-293,8
+293,9
@@
module_conf_rfcomm = "alias bt-proto-3 rfcomm"
python populate_packages_prepend () {
def extract_modinfo(file):
- import os, re
- tmpfile = os.tmpnam()
+ import tempfile, os, re
+ tempfile.tempdir = bb.data.getVar("WORKDIR", d, 1)
+ tmpfile = tempfile.mkstemp()[1]
cmd = "PATH=\"%s\" %sobjcopy -j .modinfo -O binary %s %s" % (bb.data.getVar("PATH", d, 1), bb.data.getVar("HOST_PREFIX", d, 1) or "", file, tmpfile)
os.system(cmd)
f = open(tmpfile)