lxc/0121-optimize-log-when-root-path-is-invalid.patch
2019-12-25 15:57:42 +08:00

27 lines
757 B
Diff

From 326d45d73d0061431822040a37ced879f3c6b490 Mon Sep 17 00:00:00 2001
From: TanYifeng <tanyifeng1@huawei.com>
Date: Sat, 21 Sep 2019 06:19:25 -0400
Subject: [PATCH 121/131] optimize log when root path is invalid
Signed-off-by: TanYifeng <tanyifeng1@huawei.com>
---
src/lxc/conf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index 0b10a2dd..5fd65e73 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -4881,7 +4881,7 @@ static char *get_root_path(const char *path, const char *backend)
strcmp(backend, "loop") == 0) {
tmp = strrchr(path, ':');
if (tmp == NULL) {
- ERROR("Out of memory");
+ ERROR("Invalid root path format");
return NULL;
}
tmp++;
--
2.23.0