!415 fix(shell):cp命令执行时 通配出多个源文件时错误提示不正确
Merge pull request !415 from 冷钦街/cp_hit
This commit is contained in:
commit
a1e97964c6
|
@ -857,7 +857,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