未验证 提交 e78a03c4 编写于 作者: 熊磊 提交者: Gitee

update services/init/standard/init_cmds.c.

Signed-off-by: Nxionglei <xionglei6@huawei.com>
上级 dcc408bf
......@@ -304,7 +304,7 @@ static void DoUmount(const struct CmdArgs *ctx)
int ret = GetMountStatusForMountPoint(ctx->argv[0]);
if (ret == 0) {
ret = umount(ctx->argv[0]);
if ((ret != 0) && (ctx->argc > 1) && (strcmp(ctx->argv[0], "MNT_FORCE") == 0)) {
if ((ret != 0) && (ctx->argc > 1) && (strcmp(ctx->argv[1], "MNT_FORCE") == 0)) {
ret = umount2(ctx->argv[0], MNT_FORCE);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册