[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 13/26] fsdev/virtfs-proxy-helper: Use g_mkdir()
From: |
Alex Bennée |
Subject: |
[PATCH v3 13/26] fsdev/virtfs-proxy-helper: Use g_mkdir() |
Date: |
Thu, 20 Oct 2022 12:51:56 +0100 |
From: Bin Meng <bin.meng@windriver.com>
Use g_mkdir() to create a directory on all platforms.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20221006151927.2079583-7-bmeng.cn@gmail.com>
---
fsdev/virtfs-proxy-helper.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c
index 2dde27922f..5cafcd7703 100644
--- a/fsdev/virtfs-proxy-helper.c
+++ b/fsdev/virtfs-proxy-helper.c
@@ -10,6 +10,7 @@
*/
#include "qemu/osdep.h"
+#include <glib/gstdio.h>
#include <sys/resource.h>
#include <getopt.h>
#include <syslog.h>
@@ -639,7 +640,7 @@ static int do_create_others(int type, struct iovec *iovec)
if (retval < 0) {
goto err_out;
}
- retval = mkdir(path.data, mode);
+ retval = g_mkdir(path.data, mode);
break;
case T_SYMLINK:
retval = proxy_unmarshal(iovec, offset, "ss", &oldpath, &path);
--
2.34.1
- [PATCH v3 09/26] semihosting/arm-compat-semi: Avoid using hardcoded /tmp, (continued)
- [PATCH v3 09/26] semihosting/arm-compat-semi: Avoid using hardcoded /tmp, Alex Bennée, 2022/10/20
- [PATCH v3 07/26] tests/docker: Add flex/bison to `debian-hexagon-cross`, Alex Bennée, 2022/10/20
- [PATCH v3 10/26] tcg: Avoid using hardcoded /tmp, Alex Bennée, 2022/10/20
- [PATCH v3 02/26] tests/docker: update test-mingw to run single build, Alex Bennée, 2022/10/20
- [PATCH v3 08/26] tests/tcg: use regular semihosting for nios2-softmmu, Alex Bennée, 2022/10/20
- [PATCH v3 13/26] fsdev/virtfs-proxy-helper: Use g_mkdir(),
Alex Bennée <=
- [PATCH v3 06/26] tests/avocado: extend the timeout for x86_64 tcg tests, Alex Bennée, 2022/10/20
- [PATCH v3 04/26] configure: don't enable cross compilers unless in target_list, Alex Bennée, 2022/10/20
- [PATCH v3 11/26] util/qemu-sockets: Use g_get_tmp_dir() to get the directory for temporary files, Alex Bennée, 2022/10/20
- [PATCH v3 03/26] tests/docker: Add flex/bison to `debian-all-test`, Alex Bennée, 2022/10/20