2019-12-25 15:57:42 +08:00
|
|
|
From 326d45d73d0061431822040a37ced879f3c6b490 Mon Sep 17 00:00:00 2001
|
2019-09-30 11:03:07 -04:00
|
|
|
From: TanYifeng <tanyifeng1@huawei.com>
|
|
|
|
|
Date: Sat, 21 Sep 2019 06:19:25 -0400
|
2019-12-25 15:57:42 +08:00
|
|
|
Subject: [PATCH 121/131] optimize log when root path is invalid
|
2019-09-30 11:03:07 -04:00
|
|
|
|
|
|
|
|
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
|
2019-12-25 15:57:42 +08:00
|
|
|
index 0b10a2dd..5fd65e73 100644
|
2019-09-30 11:03:07 -04:00
|
|
|
--- 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++;
|
|
|
|
|
--
|
2019-12-25 15:57:42 +08:00
|
|
|
2.23.0
|
2019-09-30 11:03:07 -04:00
|
|
|
|