common_rename(): Fixed incorrect check (array address instead of first
element, CID 4077). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40082 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e85a4793d2
commit
66e8557230
|
@ -6227,7 +6227,7 @@ common_rename(int fd, char* path, int newFD, char* newPath, bool kernel)
|
|||
goto err2;
|
||||
}
|
||||
|
||||
if (fromName[0] == '\0' || toName == '\0'
|
||||
if (fromName[0] == '\0' || toName[0] == '\0'
|
||||
|| !strcmp(fromName, ".") || !strcmp(fromName, "..")
|
||||
|| !strcmp(toName, ".") || !strcmp(toName, "..")
|
||||
|| (fromVnode == toVnode && !strcmp(fromName, toName))) {
|
||||
|
|
Loading…
Reference in New Issue