_kern_open_parent_dir has different semantics for the supplied name argument.
It's supposed to be filled with the entry name of the directory and not as in all the other cases used as a leaf name to be appended to the dir. This would lead to some errors with operations based on directory fds in the build libroot and build libbe and in the end make generate_attribute_stores fail on platforms that don't have an 0 initialized stack (since the supplied name buffer would contain garbage later attached to the directory path). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29227 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -418,7 +418,7 @@ _kern_open_parent_dir(int fd, char *name, size_t nameLength)
|
||||
{
|
||||
// get a usable path
|
||||
string realPath;
|
||||
status_t error = get_path(fd, name, realPath);
|
||||
status_t error = get_path(fd, NULL, realPath);
|
||||
if (error != B_OK)
|
||||
return error;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user