diff options
author | Richard Purdie <richard@openedhand.com> | 2008-04-10 08:30:07 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-04-10 08:30:07 +0000 |
commit | d1a700a42b22fe592cd6e4322010662ba62d58b1 (patch) | |
tree | 84322201f6b83fee2504d893298e20f40b1fbc37 /meta/packages/qemu/qemu-native-0.9.1+cvs20080307/02_snapshot_use_tmpdir.patch | |
parent | fb45df81fcce89a0481deb15bab4bbac5c83a30e (diff) | |
download | openembedded-core-d1a700a42b22fe592cd6e4322010662ba62d58b1.tar.gz openembedded-core-d1a700a42b22fe592cd6e4322010662ba62d58b1.tar.bz2 openembedded-core-d1a700a42b22fe592cd6e4322010662ba62d58b1.tar.xz openembedded-core-d1a700a42b22fe592cd6e4322010662ba62d58b1.zip |
qemu: Update cvs version to 20080308
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4223 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/qemu/qemu-native-0.9.1+cvs20080307/02_snapshot_use_tmpdir.patch')
-rw-r--r-- | meta/packages/qemu/qemu-native-0.9.1+cvs20080307/02_snapshot_use_tmpdir.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/packages/qemu/qemu-native-0.9.1+cvs20080307/02_snapshot_use_tmpdir.patch b/meta/packages/qemu/qemu-native-0.9.1+cvs20080307/02_snapshot_use_tmpdir.patch new file mode 100644 index 000000000..40264ed44 --- /dev/null +++ b/meta/packages/qemu/qemu-native-0.9.1+cvs20080307/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-12-03 23:47:25.000000000 +0000 ++++ block.c 2007-12-03 23:47:31.000000000 +0000 +@@ -191,8 +191,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); + } |