提交 fae4bdee 编写于 作者: Z zhong_ning

fix code style

Signed-off-by: Nzhong_ning <zhong_ning@hoperun.com>
上级 3d333c7b
......@@ -423,14 +423,14 @@ static void DoMkDir(const char* cmdContent)
goto out;
}
mode_t mode = DEFAULT_DIR_MODE;
if (mkdir(ctx->argv[0], mode) != 0 && errno != EEXIST) {
INIT_LOGE("DoMkDir, failed for %s, err %d.", cmdContent, errno);
if (ctx->argc != 1 && ctx->argc != argsCount) {
INIT_LOGE("DoMkDir invalid arguments: %s", cmdContent);
goto out;
}
if (ctx->argc != 1 && ctx->argc != argsCount) {
INIT_LOGE("DoMkDir invalid arguments: %s", cmdContent);
mode_t mode = DEFAULT_DIR_MODE;
if (mkdir(ctx->argv[0], mode) != 0 && errno != EEXIST) {
INIT_LOGE("DoMkDir, failed for %s, err %d.", cmdContent, errno);
goto out;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册