[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 11/51] qga/commands-posix-ssh: Use g_mkdir_with_parents()
From: |
Bin Meng |
Subject: |
[PATCH 11/51] qga/commands-posix-ssh: Use g_mkdir_with_parents() |
Date: |
Wed, 24 Aug 2022 17:39:49 +0800 |
From: Bin Meng <bin.meng@windriver.com>
g_mkdir() is a deprecated API and newer codes should use
g_mkdir_with_parents().
Signed-off-by: Bin Meng <bin.meng@windriver.com>
---
qga/commands-posix-ssh.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qga/commands-posix-ssh.c b/qga/commands-posix-ssh.c
index f3a580b8cc..2460112a38 100644
--- a/qga/commands-posix-ssh.c
+++ b/qga/commands-posix-ssh.c
@@ -59,7 +59,7 @@ static bool
mkdir_for_user(const char *path, const struct passwd *p,
mode_t mode, Error **errp)
{
- if (g_mkdir(path, mode) == -1) {
+ if (g_mkdir_with_parents(path, mode) == -1) {
error_setg(errp, "failed to create directory '%s': %s",
path, g_strerror(errno));
return false;
--
2.34.1
- Re: [PATCH 09/51] fsdev/virtfs-proxy-helper: Use g_mkdir_with_parents(), (continued)
[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 <=
[PATCH 12/51] tests: Use g_mkdir_with_parents(), Bin Meng, 2022/08/24
[PATCH 13/51] tests/qtest: migration-test: Handle link() for win32, Bin Meng, 2022/08/24
[PATCH 15/51] tests/qtest: Adapt {m48t59,rtc}-test cases for win32, Bin Meng, 2022/08/24
[PATCH 08/51] block/vvfat: Unify the mkdir() call, Bin Meng, 2022/08/24