提交 19f91f48 编写于 作者: S sun_fan

init: fix l1 test

Signed-off-by: Nsun_fan <sun_fan1@hoperun.com>
上级 a1636c9d
......@@ -522,6 +522,7 @@ static void DoMkDir(const char *cmdContent, int maxArg)
if (rc < 0) {
if (errno == EEXIST) {
INIT_LOGE("Path \" %s \" already exist", ctx->argv[0]);
rc = 0;
}
break;
}
......@@ -543,7 +544,6 @@ static void DoMkDir(const char *cmdContent, int maxArg)
} while (0);
if (rc < 0) {
INIT_LOGE("Run command mkdir failed, rmdir path");
if (rmdir(ctx->argv[0]) < 0) {
INIT_LOGE("Failed rmdir %s errno %d ", ctx->argv[0], errno);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册