summary refs log tree commit diff stats
path: root/hw/core/generic-loader.c
diff options
context:
space:
mode:
authorChristian Schoenebeck <qemu_oss@crudebyte.com>2022-01-22 20:12:16 +0100
committerChristian Schoenebeck <qemu_oss@crudebyte.com>2022-02-17 16:57:58 +0100
commit68c66a96c8393d482599bf56f1c13c7ae3e13ec1 (patch)
treed5971f398828d4194b502cb8b3422f6994f869b0 /hw/core/generic-loader.c
parent65ceee0ae5475589be0a22831860430c7c10bf52 (diff)
downloadfocaccia-qemu-68c66a96c8393d482599bf56f1c13c7ae3e13ec1.tar.gz
focaccia-qemu-68c66a96c8393d482599bf56f1c13c7ae3e13ec1.zip
tests/9pfs: fix mkdir() being called twice
The 9p test cases use mkdtemp() to create a temporary directory for
running the 'local' 9p tests with real files/dirs. Unlike mktemp()
which only generates a unique file name, mkdtemp() also creates the
directory, therefore the subsequent mkdir() was wrong and caused
errors on some systems.

Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Fixes: 136b7af2 (tests/9pfs: fix test dir for parallel tests)
Reported-by: Daniel P. Berrangé <berrange@redhat.com>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/832
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Greg Kurz <Greg Kurz <groug@kaod.org>
Message-Id: <f6602123c6f7d0d593466231b04fba087817abbd.1642879848.git.qemu_oss@crudebyte.com>
Diffstat (limited to 'hw/core/generic-loader.c')
0 files changed, 0 insertions, 0 deletions