2020-03-01 22:54:01 -05:00
|
|
|
From d4b8e904b6730f3eefa96878eca9e42219437c11 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
|
2020-03-01 22:54:01 -05:00
|
|
|
Subject: [PATCH 121/140] 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
|
2020-01-05 22:20:49 -05:00
|
|
|
index 0b10a2d..5fd65e7 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++;
|
|
|
|
|
--
|
2020-01-05 22:20:49 -05:00
|
|
|
1.8.3.1
|
2019-09-30 11:03:07 -04:00
|
|
|
|