mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 18:49:33 +02:00
qemu: Update to a recent version
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1923 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
23
meta/packages/qemu/files/02_snapshot_use_tmpdir.patch
Normal file
23
meta/packages/qemu/files/02_snapshot_use_tmpdir.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
#DPATCHLEVEL=0
|
||||
---
|
||||
# block.c | 6 +++++-
|
||||
# 1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
#
|
||||
Index: block.c
|
||||
===================================================================
|
||||
--- block.c.orig 2007-06-13 11:51:52.000000000 +0100
|
||||
+++ block.c 2007-06-13 11:51:53.000000000 +0100
|
||||
@@ -188,8 +188,12 @@ void get_tmp_filename(char *filename, in
|
||||
void get_tmp_filename(char *filename, int size)
|
||||
{
|
||||
int fd;
|
||||
+ char *tmpdir;
|
||||
/* XXX: race condition possible */
|
||||
- pstrcpy(filename, size, "/tmp/vl.XXXXXX");
|
||||
+ tmpdir = getenv("TMPDIR");
|
||||
+ if (!tmpdir)
|
||||
+ tmpdir = "/tmp";
|
||||
+ snprintf(filename, size, "%s/vl.XXXXXX", tmpdir);
|
||||
fd = mkstemp(filename);
|
||||
close(fd);
|
||||
}
|
||||
Reference in New Issue
Block a user