[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 09/51] fsdev/virtfs-proxy-helper: Use g_mkdir_with_parents()
From: |
Christian Schoenebeck |
Subject: |
Re: [PATCH 09/51] fsdev/virtfs-proxy-helper: Use g_mkdir_with_parents() |
Date: |
Fri, 26 Aug 2022 12:09:25 +0200 |
On Mittwoch, 24. August 2022 11:39:47 CEST Bin Meng wrote:
> From: Bin Meng <bin.meng@windriver.com>
>
> Use the same g_mkdir_with_parents() call to create a directory on
> all platforms.
The same would be g_mkdir(), not g_mkdir_with_parents(), so please use that
instead.
> Signed-off-by: Bin Meng <bin.meng@windriver.com>
> ---
>
> fsdev/virtfs-proxy-helper.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c
> index 2dde27922f..d0cf76d6d1 100644
> --- a/fsdev/virtfs-proxy-helper.c
> +++ b/fsdev/virtfs-proxy-helper.c
> @@ -639,7 +639,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_with_parents(path.data, mode);
> break;
> case T_SYMLINK:
> retval = proxy_unmarshal(iovec, offset, "ss", &oldpath, &path);
- [PATCH 03/51] block: Unify the get_tmp_filename() implementation, (continued)
- [PATCH 03/51] block: Unify the get_tmp_filename() implementation, Bin Meng, 2022/08/24
- [PATCH 04/51] semihosting/arm-compat-semi: Avoid using hardcoded /tmp, Bin Meng, 2022/08/24
- [PATCH 05/51] tcg: Avoid using hardcoded /tmp, Bin Meng, 2022/08/24
- [PATCH 06/51] util/qemu-sockets: Use g_get_tmp_dir() to get the directory for temporary files, Bin Meng, 2022/08/24
- [PATCH 09/51] fsdev/virtfs-proxy-helper: Use g_mkdir_with_parents(), Bin Meng, 2022/08/24
- Re: [PATCH 09/51] fsdev/virtfs-proxy-helper: Use g_mkdir_with_parents(),
Christian Schoenebeck <=
[PATCH 07/51] tests: Avoid using hardcoded /tmp in test cases, Bin Meng, 2022/08/24
[PATCH 10/51] hw/usb: dev-mtp: Use g_mkdir_with_parents(), Bin Meng, 2022/08/24
[PATCH 11/51] qga/commands-posix-ssh: Use g_mkdir_with_parents(), Bin Meng, 2022/08/24