From b962e4849812ecce5f50f5c086f9ac45cb311140 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sun, 15 Feb 2009 21:10:02 +0000 Subject: [PATCH] _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 --- src/build/libroot/fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build/libroot/fs.cpp b/src/build/libroot/fs.cpp index a542606606..c2a0c0e95c 100644 --- a/src/build/libroot/fs.cpp +++ b/src/build/libroot/fs.cpp @@ -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;