fix(shell):cp命令执行时 通配出多个源文件时错误提示不正确
close #I4JETR Signed-off-by: lengqinjie <15390014138@163.com>
This commit is contained in:
parent
b7de7f6085
commit
8675abcec9
|
@ -856,7 +856,7 @@ INT32 OsShellCmdCp(INT32 argc, const CHAR **argv)
|
||||||
(VOID)OsWildcardExtractDirectory(srcCopy, &count, CP_COUNT);
|
(VOID)OsWildcardExtractDirectory(srcCopy, &count, CP_COUNT);
|
||||||
free(srcCopy);
|
free(srcCopy);
|
||||||
if (count > 1) {
|
if (count > 1) {
|
||||||
PRINTK("cp error : %s is not a directory.\n", drcFullPath);
|
PRINTK("cp error : Can not copy two or more files.\n");
|
||||||
goto errout_with_path;
|
goto errout_with_path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue