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:
@@ -6227,7 +6227,7 @@ common_rename(int fd, char* path, int newFD, char* newPath, bool kernel)
|
|||||||
goto err2;
|
goto err2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fromName[0] == '\0' || toName == '\0'
|
if (fromName[0] == '\0' || toName[0] == '\0'
|
||||||
|| !strcmp(fromName, ".") || !strcmp(fromName, "..")
|
|| !strcmp(fromName, ".") || !strcmp(fromName, "..")
|
||||||
|| !strcmp(toName, ".") || !strcmp(toName, "..")
|
|| !strcmp(toName, ".") || !strcmp(toName, "..")
|
||||||
|| (fromVnode == toVnode && !strcmp(fromName, toName))) {
|
|| (fromVnode == toVnode && !strcmp(fromName, toName))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user