diff options
author | Richard Purdie <richard@openedhand.com> | 2007-12-04 13:58:45 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-12-04 13:58:45 +0000 |
commit | d0b4968cd24a0152e88396d40310cdbae9555a1f (patch) | |
tree | 0ec4da2bbbbfcc7300780589135c01a3430ff774 /meta/packages/qemu/qemu-0.9.0+cvs20070613/02_snapshot_use_tmpdir.patch | |
parent | 1fbde4b0c426c59695eb19e3785718dddf62632c (diff) | |
download | openembedded-core-d0b4968cd24a0152e88396d40310cdbae9555a1f.tar.gz openembedded-core-d0b4968cd24a0152e88396d40310cdbae9555a1f.tar.bz2 openembedded-core-d0b4968cd24a0152e88396d40310cdbae9555a1f.tar.xz openembedded-core-d0b4968cd24a0152e88396d40310cdbae9555a1f.zip |
qemu: Make 20071121 the default version and cleanup various file locations and recipes
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3305 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/qemu/qemu-0.9.0+cvs20070613/02_snapshot_use_tmpdir.patch')
-rw-r--r-- | meta/packages/qemu/qemu-0.9.0+cvs20070613/02_snapshot_use_tmpdir.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/packages/qemu/qemu-0.9.0+cvs20070613/02_snapshot_use_tmpdir.patch b/meta/packages/qemu/qemu-0.9.0+cvs20070613/02_snapshot_use_tmpdir.patch new file mode 100644 index 000000000..bd955b6db --- /dev/null +++ b/meta/packages/qemu/qemu-0.9.0+cvs20070613/02_snapshot_use_tmpdir.patch @@ -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); + } |