!777 [LTS-3.0]修复toybox mv指令能够移动成功,但提示错误22的BUG
Merge pull request !777 from Far/cherry-pick-1641884328
This commit is contained in:
commit
89154a3765
|
@ -118,7 +118,10 @@ static int GetFullpathNull(int fd, const char *path, char **filePath)
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
return -get_errno();
|
return -get_errno();
|
||||||
}
|
}
|
||||||
fullPath = file->f_path;
|
fullPath = strdup(file->f_path);
|
||||||
|
if (fullPath == NULL) {
|
||||||
|
ret = -ENOMEM;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ret = GetFullpath(fd, path, &fullPath);
|
ret = GetFullpath(fd, path, &fullPath);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
|
Loading…
Reference in New Issue